4 ms·
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 deali
by NkVczPkybiXICG 13y ago
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.
- tomp 13y agoCast 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.
- ErsatzVerkehr 13y ago> 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."
- NkVczPkybiXICG 13y agoCasting back and forth is extremely slow. He has a loop with multiplication by 10 inside it in dec_new.