Advertisement
Virajsinh

Float Calculation in Java Script

Mar 5th, 2024
795
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.13 KB | Source Code | 0 0
  1. function float_calculation(a_value, b_value){
  2.   var total = parseFloat(a_value) + parseFloat(b_value);
  3.   return total.toFixed(2);
  4. }
Tags: JavaScript
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement