Closed bensku closed 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?).
double/int
float
new Float(number
number
Fixed with new types and CraftJS changes.
JS number (Java
double/int
) can be used as Javafloat
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 allownumber
for floats (but what about literals?).