PP.NumberFormat.tryRound (value);
value. Fractional number.
The tryRound method rounds fractional numbers.
To execute the example the page must contain a link to PP.js library. Use the tryRound method to round a fractional number:
PP.NumberFormat.tryRound (1,234);
Result:
1
NOTE. This method rounds only the numbers that use a comma as decimal separator.
See also: