image image image image image image image
image

Double Asian Penetration VIP Leaked Content #82d

49767 + 375 OPEN

I've read about the difference between double precision and single precision

However, in most cases, float and double seem to be interchangeable, i.e Using one or the other does not seem to affec. The 53 bits of double s give about 16 digits of precision The 24 bits of float s give about 7 digits of precision. From what i have read, a value of data type double has an approximate precision of 15 decimal places However, when i use a number whose decimal representation repeats, such as 1.0/7.0, i find tha.

494 a double is not an integer, so the cast won't work Note the difference between the double class and the double primitive Also note that a double is a number, so it has the method intvalue, which you can use to get the value as a primitive int. Using long double i get 18/19 = 0.947368421052631578., and 947368421052631578 is the repeating decimal Using double i get 0.947368421052631526.however, the former is correct Double d = ((double) num) / denom

But is there another way to get the correct double result

I don't like casting primitives, who knows what may happen. Long double vs double i am unable to understand the difference between between long double and double in c and c++ In my earlier question i was printing a double using cout that got rounded when i wasn't expecting it How can i make cout print a double using full precision?

OPEN