filmov
tv
Java Programming Tutorial 4 - Getting float and string type data input from user

Показать описание
Java Programming Tutorial 4 - Getting float and string type data input from user.
In this Video I will be showing you how to get input string type data from user .
In this video you will get learn about the second categorization of java data types. The second type of data types that are available with java is Floating Point Data Type. Floating Point Data type is used to represent wide variety of values.Basically floating point data type is used to store decimal values. Decimal values are more accurate and precise then integer values.Now floating point data types are used to store values with decimal values.Floating point data type contains two types of data type
1. Float
2. Double
Float data type is used to store decimal values with 6 to 7 digits of precession .It is of 32 bits i.e. 4 bytes. By default all floating values or decimal values are stored in double type .So i you want to use float data type then you have to add a suffix "f " at the end of the number otherwise it will store the value to double type and you have given data type float so an error will come.
Double data type is used to represent values with precession of about 15 digits. Its size is 64 i.e. 8 bytes. Double data type is used to store very big values and that big value is not used so often so we use float data type then double data type.
Subscribe for some more programming action!
If you have a question please write it in the comments of this video. I will respond to you within a few hours.
If you need immediate help or To get any code contact Me !!!!
In this Video I will be showing you how to get input string type data from user .
In this video you will get learn about the second categorization of java data types. The second type of data types that are available with java is Floating Point Data Type. Floating Point Data type is used to represent wide variety of values.Basically floating point data type is used to store decimal values. Decimal values are more accurate and precise then integer values.Now floating point data types are used to store values with decimal values.Floating point data type contains two types of data type
1. Float
2. Double
Float data type is used to store decimal values with 6 to 7 digits of precession .It is of 32 bits i.e. 4 bytes. By default all floating values or decimal values are stored in double type .So i you want to use float data type then you have to add a suffix "f " at the end of the number otherwise it will store the value to double type and you have given data type float so an error will come.
Double data type is used to represent values with precession of about 15 digits. Its size is 64 i.e. 8 bytes. Double data type is used to store very big values and that big value is not used so often so we use float data type then double data type.
Subscribe for some more programming action!
If you have a question please write it in the comments of this video. I will respond to you within a few hours.
If you need immediate help or To get any code contact Me !!!!