**hello,**

I have a number that I am trying to transform into my ts file but I can't get it to work.

here is the number: 123456.059

expected result: 1.234

Thanks for your help.

```
import { DecimalPipe } from '@angular/common';

class MyService {
  constructor(private _decimalPipe: DecimalPipe) {}

  transformDecimal(num) {
    return this._decimalPipe.transform(num, '1.2-2');
  }
}

```