Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
malkia
on Oct 12, 2015
|
parent
|
context
|
favorite
| on:
Cast-Free Arithmetic in Swift
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
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: