3 ms·
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/ https://swift.o
by skohan 7y ago
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/ https://swift.org/blog/numerics/
- enriquto 7y agowhat 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?
- mvelie 7y agoSwift also has decimal (so does objective-c) which handles this properly. See https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20161219/004220.html https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20... to see how swift's implementation of decimal differs from obj-c.