roundTo
Description
Examples
import { from } from 'rxjs';
import { roundTo } from '@bottlenose/rxstats';
const num$ = from([1.234567, 4.5678]);
const roundedNum$ = num$.pipe(
roundTo(3)
);
roundedNum$.subscribe(console.log);
// Output:
// 1.235
// 4.568API
sum(numDecimalPlaces: Number)Since
Parameters
Options
Returns
Last updated