Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript snumber two decimal places as string

let money = 1.6;

money.toFixed(2); // 1.60
 
PREVIOUS NEXT
Tagged: #javascript #snumber #decimal #places #string
ADD COMMENT
Topic
Name
5+5 =