Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A floating point number consists of 3 parts: mantissa, exponent and sign. These are usually packing into a 32-bit or 64-bit value. So you can split them back into 3 integers and do the integer adds, multiply and shifts to get the result and pack them back. It is not hard to implement a basic version but to make it fast and comply with the standard is a bit more work.


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

Search: