Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.99 KB

round.md

File metadata and controls

40 lines (32 loc) · 1.99 KB

Type Enforcer Math

An extension of type-enforcer with Math related data types and enforcer functions

npm build coverage deps size vulnerabilities license


round(value, [fractionDigits], [precision]) ⇒ number

Rounds a number to a specified number of fraction digits and/or precision.

Param Type Default Description
value number The number to be rounded.
[fractionDigits] number 0 Must be a positive integer or null.
[precision] number 0 Significant digits.