My code is bellow
var FBTL = parseFloat($("#txtFBTotalIntake").val()).toFixed(2) +
parseFloat($("#txtFBPumpPrime").val()).toFixed(2)+
arseFloat($("#txtFBCrystalloid").val()).toFixed(2) +
parseFloat($("#txtFBBlood").val()).toFixed(2);
I am entering 10, 0 , 0, 0 respectively,
And its returning 10.000.000.000.00
And its returning 10.000.000.000.00
shibasankar beheraPosted Mar 5, 2015, 7:55 AM
prasannaPosted Mar 5, 2015, 7:23 AM
try this:
you need to parse this complete one $("#txtFBTotalIntake").val().toFixed(2)
you are parsing only your text box value.