|
|
|
|
|
by Someone
739 days ago
|
|
Swift does that for integers, floats and doubles, too. https://docs.swift.org/swift-book/documentation/the-swift-pr...: “Conversions between integer and floating-point numeric types must be made explicit: let three = 3
let pointOneFourOneFiveNine = 0.14159
let pi = Double(three) + pointOneFourOneFiveNine
// pi equals 3.14159, and is inferred to be of type Double
“ |
|