Re:Cast-Free Arithmetic in Swift
by malkia on Monday October 12, 2015 @03:15PM
(#10376451)
I've read that as do 1.4 + 1.4 give you 2 or 3 - if you cast 1.4 to int first, you'll get 1 + 1 = 2, but otherwise 1.4+1.4 = 2.8 -> to int = 3
[ Parent
| on HN ]
There are no comments on this comment yet.