Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
skohan
on Dec 2, 2019
|
parent
|
context
|
favorite
| on:
0.30000000000000004
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/
mvelie
on Dec 2, 2019
|
next
[–]
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.
enriquto
on Dec 2, 2019
|
prev
[–]
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:
https://swift.org/blog/numerics/