Double In Java - Double VS Int
Вставка
- Опубліковано 14 чер 2023
- $1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
In this video, I show you how to use the double in Java! A double is just a variable that lets you use decimal points! The int variable is for whole numbers (integers), and the double is the most precise variable type in Java for storing decimal points. There are some quirks with rounding/converting so I show you some examples to hopefully help you out in this video!
I hope you enjoyed this int and double in java tutorial!
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
If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
Good to see you making videos again.
Your videos are super helpful. Thanks Alex!
You helped me out last year when I was starting in college comp sci, appreciate it
Just found out your channel! The way you explain and show helps alot
Java is easy with you.
When I am stuck I always check your courses
Easy to learn brother , Thank u 🫂
Hi, could you make a video how to connect mysql database on your mac Eclipse IDE. Thanks! I really learn a lot from you!
Hey Alex could you go over heaps and priority queues?
i am a freshman in high school and i am trying to get into AP computer science. i really like ur videos and i have a specific request to you cuz i understand coding only when you teach it, can you do a video with
decision statements
loops
methods
nesting
scope
random numbers
strings
array
text files
user input
output and formatting
sorting
debugging and tracing code
primitive data types
numerical operations
comparisons (numerical and boolean)
please do this favor for me . i hope you do a video on these topics
public class Test3
{
public static void main(String[] args)
{
double x = 0129.89;
double y = 0167;
System.out.println(x+","+y);
}
output:129.89,119.0 why?
ok if it is octal number so 0167 value becomes 119.0 but 129.89 octal value is 89.89 why i got 129.89? can you please explain this
🪻🪻
least popular video has 1.5k views??