Answers for "swift how to cast int to double"

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

Code answers related to "Swift"

Browse Popular Code Answers by Language