swift double v float
Double is 64-bit // stores more precise decimal number
Float is 32-bit
swift double v float
Double is 64-bit // stores more precise decimal number
Float is 32-bit
float vs double in swift
/* Float can only hold seven digits of decimal numbers
while Double can hold twice the number. */
// i.e:
let valueOfPi: Float = 3.142857143
print(valueOfPi) // 3.142857
let valueOfRandomDecimal: Double = 7.1428571434322432345331
print(valueOfRandomNumber) // 7.142857143432243
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us