Hi,
I'm using a Java library that accepts only float values. This is fine except Java defaults to doubles.
getResult(0.4); // Java assumes its a double and complains its not a float
Casting is a pain when you're doing it every line..
Is there a way to make Java default to using floats, or convert automatically, or do something that mitigates writing (float)0.. every other line?
Thanks
--Glen
Memoria mihi benigna erit qui eam perscribam
I'm using a Java library that accepts only float values. This is fine except Java defaults to doubles.
getResult(0.4); // Java assumes its a double and complains its not a float
Casting is a pain when you're doing it every line..
Is there a way to make Java default to using floats, or convert automatically, or do something that mitigates writing (float)0.. every other line?
Thanks
--Glen
Memoria mihi benigna erit qui eam perscribam