Float Double Data Types in Java || Lesson 5 || Java Programming || Learning Monkey ||

Veröffentlicht am: 30 März 2023
auf dem Kanal: Learning Monkey
510
13

Float Double Data Types in Java
In this class, We discuss Float Double Data Types in Java.
The reader should have prior knowledge of int, byte, short, and long data types. Click Here.
Float and Double are the data types used to store floating point numbers.
The float data type will take 32-bit memory.
The double data type will take 64-bit memory.
Which representation of floating point numbers is used in java?
Float uses IEEE 754 single-precision representation
Double uses IEEE 754 double-precision representation.
The above IEEE representations are out of the scope of this syllabus.
Example:
float a = 10.123456789f
System.out.println(a)
When we define floating point values. In the end, we need to place f.
Default the java compiler will consider in double format. i.e., double precision conversion.
The double-precision conversion is not compatible with floating.
The output of the above program is 10.123457
The float data type will take 6 digits after the decimal point.
The double data type will take 15 digits after the decimal point.

Link for playlists:
   / @learningmonkey  


Link for our website: https://learningmonkey.in

Follow us on Facebook @   / learningmonkey  

Follow us on Instagram @   / learningmonkey1  

Follow us on Twitter @   / _learningmonkey  

Mail us @ learningmonkey01@gmail.com


Auf dieser Seite können Sie das Online-Video Float Double Data Types in Java || Lesson 5 || Java Programming || Learning Monkey || mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Learning Monkey 30 März 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 510 Mal angesehen und es wurde von 13 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!