HackerTrans
TopNewTrendsCommentsPastAskShowJobs

wheelerof4te

no profile record

comments

wheelerof4te
·4 ปีที่แล้ว·discuss
Use the round function in that case.
wheelerof4te
·4 ปีที่แล้ว·discuss
Step one:

You don't. At least, not exact numbers. You almost always have to round the numbers up, or just aproximate the value.

So, while

  1.2 + 2.3 != 3.5
this is always correct:

  1.2 + 2.3 < 3.6