0

This is my code:

enter image description here

This is my first value. That is 8.

enter image description here

This is my next value. That is 11.

enter image description here

This is my integer value. That is 107.

enter image description here

My expect return value is 271.78 but it return back me 271.78(0)3. That make me wonder why? I tried to casting foot and inch to double but it not work.

enter image description here

Is floating point math broken? show me how to compare but i need to return a right number. It can't help me.

Community
  • 1
  • 1
Trần Đức Tâm
  • 4,037
  • 3
  • 30
  • 58

0 Answers0