newRPL: Alpha demo 0.9 released [UPDATED 2017-10-25]
|
08-19-2017, 06:58 PM
Post: #37
|
|||
|
|||
RE: newRPL: Alpha demo 0.9 released [UPDATED 2017-08-11]
(08-19-2017 05:36 PM)The Shadow Wrote:(08-19-2017 02:07 PM)Claudio L. Wrote: Regarding KEYEVAL, it works very differently than in classic RPL. It doesn't EVAL the object but simulates the key press. For this reason the only way to disable custom keys is to temporarily set flag -4 (FL_NOCUSTOMKEYS if you look at the sources), call KEYEVAL, then restore the original flag. I don't understand what you mean by "overshooting". ->Q will use signed 64-bit integers for the numerator and denominator to approximate the number as good as possible. The limited precision will show when you try to convert small numbers (smaller than 1E-18), since the smallest fraction that can be represented is 1/max_denom = 2^-63. More precision doesn't make much sense: if you need more than 18 digits to represent the denominator, you are probably better off working with the real number. Too much precision will hurt the algorithm when trying to find simple fractions |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)