fix point add point and float operation problem in JS