why can't float a = 5.6; ?
error: incompatible types: possible lossy conversion from double to float float a = 5.6; ^ 1 error
Cause
double is the default type of floating point number in java language.
Fix
float a = 5.6f;
Hello everyone! 👋 We are excited to share an update about one of our open-source projects , @qzl/typed-i18n , created by the QZ-L.com team...
No comments:
Post a Comment