Double and Float! | Sololearn: Learn to code for FREE!

+2

Double and Float!

Is there any differences between Double and Float in swift language? when we should use each of them?

11/10/2016 3:15:08 PM

Amin Ghasemi

3 Answers

New Answer

+3

In short, double is a decimal number that's more accurate than a float. And that goes for all languages.

+2

double use 64bit float-point number float 32bit.

+1

64 bit doubles have more decimal places are greater precision than 32 bit floats