Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
skohan
· 6y ago · 0 comments
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/
Comments
[–]
mvelie
6y ago
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
6y ago
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?