lndsld

Home > @lndsld/math > roundBy

roundBy() function

Round float number with specified accuracy

Signature:

declare function roundBy(digits: number): Transform<number>;

Parameters

Parameter Type Description
digits number fraction digits

Returns:

Transform<number>