This is my code:
This is my first value. That is 8
.
This is my next value. That is 11
.
This is my integer value. That is 107
.
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.
Is floating point math broken? show me how to compare but i need to return a right number. It can't help me.