I’m not sure if this is actually possible, but can I change default type for floating point numbers to float. It’s double and most of android classes use float and I always have to cast.
Edit:
Well yes, I don’t have to cast (float f = 1.0f) , but the f after each float is annoying. Isn’t there some compiler option or something?
You can declare number as a float literal by appending low case
fafter the value, e.g.With that no casts are required