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

Where's exp(), log(), sin(), cos()? He did the bare minimum amount of work and left all the interesting functionality out. We have relatively fast ways of dealing with these in IEEE754, but I see no equivalent here.

I really don't want to rehash the arguments that applied 30 years ago, as they do today. Decimal floating point is good for some things, but to be considered the "only number type in the next generation of programming languages" is laughable.



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.




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

Search: