Answers for "swift double to float"

1

swift double to int

Int(yourDoubleValue)
Posted by: Guest on March-25-2020
1

Decimal to Double conversion in Swift

let someDouble = Double(truncating: someDecimal as NSNumber)
Posted by: Guest on March-25-2020
0

swift double v float

Double is 64-bit // stores more precise decimal number
Float is 32-bit
Posted by: Guest on September-28-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language