Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

coffeescript float to two decimal places

number = 24.54616515.toFixed 2    #24.55
 
PREVIOUS NEXT
Tagged: #coffeescript #float #decimal #places
ADD COMMENT
Topic
Name
7+8 =