newRPL: Alpha demo 0.9 released [UPDATED 20171025]

08192017, 06:58 PM
Post: #37




RE: newRPL: Alpha demo 0.9 released [UPDATED 20170811]
(08192017 05:36 PM)The Shadow Wrote:(08192017 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 64bit 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 1E18), 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)