How to round off parseFloat results in Jquery/Javascript?
问题 How would I round off a value from a textfield with a parseFloat result in it? This application basically sums up the value of all radio buttons when clicked and displays the sum in a textbox. The code below works perfectly if the radio button value is an integer, however if I want to have a floating point value on the radio button, the total value will have a 100.0000000679 when it should be 100 . Any tips would be very much appreciated. Thanks in advance. function calcscore(){ var score = 0