Hacker News new | past | comments | ask | show | jobs | submit login

This is part of the reason Swift Numerics is helping to make it much nicer to do numerical computing in Swift.

https://swift.org/blog/numerics/




Swift also has decimal (so does objective-c) which handles this properly. See https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20... to see how swift's implementation of decimal differs from obj-c.


what is the number representation in swift? Looking at your link it seems to be plain ieee floats. In that case, would't it have the same behavior?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: