lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>>>>> "Lorenzo" == Lorenzo Donati <lorenzodonatibz@tiscali.it> writes:

 Lorenzo> and also this SO post:
 Lorenzo> https://stackoverflow.com/a/2174100/2633423

 Lorenzo> which links to the article above and other info.

That's well out of date; the Ryu algorithm, published in about 2018,
beats the pants off every other exact float output algorithm both in
speed and simplicity.

(It's hard to overstate how good it is. It's many times faster than any
previous algorithm, requires no special cases other than zero/inf/NaN,
and doesn't use any float arithmetic at all.)

-- 
Andrew.