Dysfold / craftjs

MIT License
10 stars 2 forks source link

Generated number types #29

Closed bensku closed 3 years ago

bensku commented 3 years ago

JS number (Java double/int) can be used as Java float only if it can be losslessly converted. Boxing (new Float(number) works, but current types don't permit that. It might make sense not to allow number for floats (but what about literals?).

bensku commented 3 years ago

Fixed with new types and CraftJS changes.