1 post found
Swift's Decimal fixes binary floating-point money bugs, until you build one from a Double or a float literal. Here's why Decimal(0.1) can carry the exact error you were trying to escape, and the initializers that actually give you exact cents.