# Thread: What is the difference between float and double?

1. Member
Join Date
Jan 2011
Posts
13
Rep Power
0

## What is the difference between float and double?

What is the difference between float and double?

2. Member
Join Date
Jan 2011
Location
Gainesville, FL
Posts
45
Rep Power
0
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

4. Moderator
Join Date
Jul 2010
Location
California
Posts
1,638
Rep Power
13

5. Moderator
Join Date
Apr 2009
Posts
13,541
Rep Power
27

## Re: What is the difference between float and double?

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?
Last edited by DarrylBurke; 09-23-2014 at 12:21 PM.

6. ## Re: What is the difference between float and double?

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