How are floating point numbers represented in Java?
Please tell the answer fast I am waiting for that
Answers
Answered by
1
Java uses a subset of the IEEE 754 binary floating point standard to represent floating point numbers and define the results of arithmetic operations. Virtually all modern computers conform to this standard. A float is represented using 32 bits, and each possible combination of bits represents one real number.
please mark me brain mark list
Answered by
3
Answer:
Floating Points Numbers are represented in two ways -
(1) – Double – In this , you assign the number directly . It is considered as default .
Example :
x = 0.125
(2) – Float – In this , you always put a suffix 'f' after the value .
Example :
x = 0.125f
Similar questions
Math,
4 hours ago
English,
4 hours ago
Business Studies,
4 hours ago
Math,
9 hours ago
Computer Science,
9 hours ago
Science,
8 months ago
English,
8 months ago
Math,
8 months ago