obj[i]['Weight'] = parseFloat("0");
obj[i]['Height'] = parseFloat("0");
obj[i]['Temperature'] = parseFloat(0,10);
// This does not work…
obj[i]['Weight'] = parseInt(0,10);
obj[i]['Height'] = parseInt(0,10);
obj[i]['Temperature'] = parseInt(0,10);
// This too does not work…
My Input Value is 0, but when i show it… gives me 0.0 {Strange}.. So i did these and yet it shows 0.0
If, as you say,
parseIntdoes not work for you, then you can useMath.floor[MDN].If this doesn’t work either, maybe simple string manipulation helps: