How do you decide which integer type to use?
Use "short" when you need to avoid values over 32,767,
"int" when you want to store integers,
"long" for long number (more than 6 digits)
"float" for numbers over 4 billion.
Thank you!!
"int" when you want to store integers,
"long" for long number (more than 6 digits)
"float" for numbers over 4 billion.
Thank you!!
No comments