Can a value be at the same time double and float? Explain please
I thought 14.55 was either double or float depending on the programmer's choice
2/2/2020 9:38:46 AM
A decimal point value is always by default a double. You need to declare it as float for it be a float.
You can add "f" if you want to prevent it from being a double by default:
Send us a message