mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-04 02:49:42 +03:00
An operating function
faf2e910f4
Floating point parses for doubles correctly and can be easily implemented for the other types of floats (algorithm is general with respect to the precision of the significand). Some half-baked gates are included, like bey, which is unfortunate. I'm not sure if an equivalent to bey exists somewhere. These won't be used anywhere with actual math, though. Warning: Don't try to print floats. It doesn't work and will crash or something. Its not really implemented, because parsing is actually fairly nontrivial mathwise. Parsing represents the problem x.y -> r2^e, find (r, e) given (x, y) whereas printing is the problem r2^e -> x.y, find (x, y) given (r, e) both of which are annoying to solve. |
||
---|---|---|
arvo | ||
main | ||
spec/nock | ||
try |