Overflow when performing operations with float

0

I'm doing the following operation:

var Total = parseFloat($('valor1').val()) * parseFloat($('valor2').val())

Both valor1 as valor2 have a maximum of 14 characters, then when performing this operation with all characters the result overflows. Something of the style appears:

123131231e+25

Would there be any solution for this?

    
asked by LMAN 12.09.2017 в 15:03
source

0 answers