Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

float addition in javascript

var result = parseFloat('2.3') + parseFloat('2.4');
alert(result.toFixed(2));​
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #float #addition #javascript
ADD COMMENT
Topic
Name
2+3 =