+ 2

Double and Float!

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

10th Nov 2016, 3:15 PM
Amin Ghasemi
Amin Ghasemi - avatar
3 Respostas
+ 3
In short, double is a decimal number that's more accurate than a float. And that goes for all languages.
12th Nov 2016, 12:58 AM
Keto Z
Keto Z - avatar
+ 2
double use 64bit float-point number float 32bit.
10th Nov 2016, 4:12 PM
Вадим Глушков
Вадим Глушков - avatar
+ 1
64 bit doubles have more decimal places are greater precision than 32 bit floats
16th Dec 2016, 6:49 PM
Stephen Learmonth
Stephen Learmonth - avatar