Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

round a number to fixed decimals

var numb = 12312214.124124124;
numb = numb.toFixed(2);
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #number #fixed #decimals
ADD COMMENT
Topic
Name
3+2 =