+ 12

What is float and double?

Can anyone tell me what is the difference between float data type and double data type.

23rd Sep 2017, 12:32 PM
Abhishek Pun
Abhishek Pun - avatar
3 Answers
+ 1
float . value duble .00 duble value it's use in points value physics gaming c#
23rd Sep 2017, 12:36 PM
prashant vyas
prashant vyas - avatar
+ 1
A floating point number is a extension of an older format ,called fixed point numbers.A fixed point number. would store a fixed number of digits before and after the decimal point (in binary).for example ,+1110101.00001000 is an example of a 16 bit fixed point number in 7.8 format(one bit is spent on sign). The term double is short for "double precision floating point number ".it literally means that twice as many as bits are used in storing it as a regular floating point number.on a typical modern machines,floats are 32 bits( 1 but for sign,8bits for exponent,23 bits for value),while doubles are 64 bits(1 for the sign,11 bits for exponent and 52 bits for the value).
1st Oct 2017, 4:45 PM
Prabhat Thakur
Prabhat Thakur - avatar