Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

lodash round

Computes number rounded to precision.

_.round(4.006);
// => 4
 
_.round(4.006, 2);
// => 4.01
 
_.round(4060, -2);
// => 4100
Source by lodash.com #
 
PREVIOUS NEXT
Tagged: #lodash
ADD COMMENT
Topic
Name
3+4 =