Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: to-integer problem

From: lmecir:mbox:vol:cz at: 16-Apr-2003 15:33

Hi Jeff and Will,
> I get the same results on REBOL/View 1.2.1.3.1. I do believe there is a > problem. Have you sent feedback to the Rebol folks? > > -Jeff Smith
actually, there is no problem. This behaviour is "forced" by the fact, that binary floating point numbers cannot exactly represent a number like 1.14 If you want to get 114, you can do as follows: to integer! round 1.14 * 100 Or use any similar expression. ( see http://www.fm.vslib.cz/~ladislav/rebol/rounding.r ) Regards -Ladislav