Рет қаралды 133,603
$1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
Here are the exact differences between float long and double (AKA single/double precision floating point) variables in java! ✅
👑Start practicing now with 10 free java programs - alexlorenlee.com/
🌅 Source Code -github.com/ale...
Java long, int, float and double are all variables for numbers. Each variable has its own range. You can find them here: cs.fit.edu/~ry...
Int and long variables can't have decimals.
Float and double variables do have decimals.
Java int, long, double and float variables in java can be tricky... Like I said, I didn't understand the difference for most of college, but you'll surely get the hang of it! They aren't too bad :) If you followed along, congrats! You learned-by-doing!
I hope you enjoyed this tutorial on java float vs double vs long! I like to have a nice mix of tutorials and actual projects for you all :)
Do you want to learn how to code from scratch, in Java? Check out my Java Tutorial For Beginners: • Coding For Beginners I...
How are you using int, long, float and double data types in java? -
Full Java Tutorial For Beginners Playlist: • Full Java Course by Al...
Free Tips: bit.ly/3U6HXcb
Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.
~
Alex Lee