joebo / microj

MIT License
14 stars 1 forks source link

Double or float - which to use? #18

Closed jonghough closed 9 years ago

jonghough commented 9 years ago

Should functions (especially mathy functions) return doubles or floats? Since we use longs over ints mostly, perhaps doubles are better.

joebo commented 9 years ago

Good question!

I would like to stick to double and long for now. I see float and int32 as an optimization that might be added in the future (since it uses less space and may have faster computations in some cases). Please comment if you feel differently