Added by: ~Akhenaton, 2010 XI 15, Last modified: 2010 XI 17
| Type: | other |
|---|---|
| Status: | closed |
| Progress: | 100 |
int(0.25*4) gives 0
whilst
int(0.25000000000000000000001*4) gives 1
Think there is an issue here.
Indeed,
ttmath::ErrorCode parsingError = valueParser.Parse("0.25 * 4");
if (parsingError == ttmath::err_ok)
return valueParser.stack[0].value.ToInt();
also returns 0
; it should be 1 IMHO
Added by: tomek, 2010 XI 17, Last modified: 2010 XI 17
The simple answer is: 0.25 is not 0.25