In Sencha Touch I use number fields to get some values:
var heightInFt = Ext.getCmp('HeightFt').getValue();
var heightInIn = Ext.getCmp('Height').getValue();
var totalHeightInFt = (heightInFt * 12) + heightInIn;
bmrValue = 655 + (4.35 * weightInLb) + (4.7 * totalHeightInFt) - (4.7 * age);
bmrValue = Math.round(bmrValue * 100) / 100;
Then when I multiply
calories = bmrValue * 1.55;
I get this result: 1544.9 * 1.55 = 2394.5950000000003
What am I doing wrong? What should I do in this situation?