Just to provide a little extra info so not to confuse someone reading this, not all Arduinos have 32 bit double and floats, the Arduino Due uses an ARM core processor which has 64 bit doubles. Currently all of the Atmel based Arduinos have matched double and float precisions of 32 bits.