Hacker News new | past | comments | ask | show | jobs | submit login

There are three floating-point representations:

- A variable-precision decimal floating point that uses base-1000 internally with 10 bits for 1000 values instead of 1024, so reduced memory waste, and LEB128 for size and exponent encoding. So 1.23 is 5 bytes, and each decimal value has its own precision. The precision only affects computations, not stored objects, so you can adjust the precision for each step of a computation.

- IEEE754 hardware accelerated 32-bit and 64-bit binary floating point.

In line with RPL, there are many other object types, including arbitrary-precision integers (123 is 2 bytes, 100! is 68 bytes), symbolic expressions, programs, lists, and so on.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: