What is the difference between float and double?

• 01-31-2011, 03:34 AM
Nosrettap
What is the difference between float and double?
What is the difference between float and double?
• 01-31-2011, 03:40 AM
Vase
Same as the difference between an int and a long; longs and doubles have higher precision than ints and floats.

int = 32 bits
long = 64 bits
float = 32 bits
double = 64 bits
• 01-31-2011, 03:40 AM
Junky
• 01-31-2011, 03:45 AM
doWhile
• 09-23-2014, 09:02 AM
brianmanee
Re: What is the difference between float and double?
Quote:

Originally Posted by Nosrettap
What is the difference between float and double?

The Decimal, Double, and Float variable types are different in the way that they store the values. Precision is the main difference where float is a single precision (32 bit) floating point data type, double is a double precision (64 bit) floating point data type and decimal is a 128-bit floating point data type. More about...difference between float and double

Brian
• 09-23-2014, 10:17 AM
Tolls
Re: What is the difference between float and double?
Quote:

Originally Posted by brianmanee
The Decimal, Double, and Float variable types are different in the way that they store the values. Precision is the main difference where float is a single precision (32 bit) floating point data type, double is a double precision (64 bit) floating point data type and decimal is a 128-bit floating point data type. More about...difference between float and double

Brian

Pardon?
Have they added another primitive when I wasn't looking?
• 09-23-2014, 12:20 PM
DarrylBurke
Re: What is the difference between float and double?
Quote:

Originally Posted by Tolls
Pardon?
Have they added another primitive when I wasn't looking?

... between January 2011, when this thread was started, and today?

Oh, and I'm removing the spammy link just as soon as I post this.

db