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

Cast to IEEE754 binary floating point number, perform exp()/sin/..., and cast back.

In any case, I don't think DEC64 is intended for those users that need to use cos() et al.



> In any case, I don't think DEC64 is intended for those users that need to use cos() et al

He apparently has other ideas: "DEC64 is intended to be the only number type in the next generation of application programming languages."


Casting back and forth is extremely slow. He has a loop with multiplication by 10 inside it in dec_new.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: