B
botp
0.2-0.1
=> 0.1
gotcha!
ok, i know what you're thinking. this dead horse is double dead..
in the spirit of advancing to a better computing env, shouldn't it be
time for ruby to default to "real" decimal instead of float?
arguments:
1. ruby using the dot decimal notation, for sure that is a decimal
notation (and ruby is not c)
2. we remove 99% of deci gotchas
3. there is always #to_f. we can put it to better use (if you want
speed and not precision).
4. i wont ask again and again ;-)
kind regards -botp
ps: this is not th*u*nk. LOL )
=> 0.1
=> 1.11.2-0.1
=> 0.09999999999999991.2-1.1
gotcha!
ok, i know what you're thinking. this dead horse is double dead..
in the spirit of advancing to a better computing env, shouldn't it be
time for ruby to default to "real" decimal instead of float?
arguments:
1. ruby using the dot decimal notation, for sure that is a decimal
notation (and ruby is not c)
2. we remove 99% of deci gotchas
3. there is always #to_f. we can put it to better use (if you want
speed and not precision).
4. i wont ask again and again ;-)
kind regards -botp
ps: this is not th*u*nk. LOL )