We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you run the following code on macOS, the output will be 68.31999999999999:
68.31999999999999
let jsonString = """ { "amount": 68.32 } let json = jsonString.data(using: .utf8)! let serialized = try JSONSerialization.jsonObject(with: json) as! [String: Any] let amount = serialized["amount"] print(amount)
However, if you run the same code on SwiftFiddle (using the x86_64-unknown-linux-gnu platform), the output will be 68.32.
x86_64-unknown-linux-gnu
68.32
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you run the following code on macOS, the output will be
68.31999999999999
:However, if you run the same code on SwiftFiddle (using the
x86_64-unknown-linux-gnu
platform), the output will be68.32
.The text was updated successfully, but these errors were encountered: