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
Swift 5.1.1 on Linux (Ubuntu 18.04).
md5: bd443b98981f7c49705b83ba9d300fa0
Issue Description:
On Darwin (Swift 5.1.2, Xcode 11.2):
import Foundation let oneLiter = Measurement(value: 1, unit: UnitVolume.liters) oneLiter.converted(to: .cubicCentimeters).value // 1000 oneLiter.converted(to: .cubicMillimeters).value // 1_000_000
These conversions are correct.
The same code on Linux (Swift 5.1.1) produces wrong results by a factor of 10 and 1000, respectively:
import Foundation let oneLiter = Measurement(value: 1, unit: UnitVolume.liters) oneLiter.converted(to: .cubicCentimeters).value // 100 oneLiter.converted(to: .cubicMillimeters).value // 1000
This is because the coefficients in the code for these two units are incorrect.
The text was updated successfully, but these errors were encountered:
PR: #2561
Sorry, something went wrong.
ole
No branches or pull requests
Environment
Swift 5.1.1 on Linux (Ubuntu 18.04).
Additional Detail from JIRA
md5: bd443b98981f7c49705b83ba9d300fa0
Issue Description:
On Darwin (Swift 5.1.2, Xcode 11.2):
These conversions are correct.
The same code on Linux (Swift 5.1.1) produces wrong results by a factor of 10 and 1000, respectively:
This is because the coefficients in the code for these two units are incorrect.
The text was updated successfully, but these errors were encountered: