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
Rational created with negative numerator and denominator gives 0 when casting to decimal. Isn't it a bug?
var num = new Rational(-9, -3); var dec = (decimal) num; // dec is 0
The text was updated successfully, but these errors were encountered:
Yet another case:
num = new Rational(9, 3); var approximate = Rational.Approximate(-0.1m, Decimal.Zero); num += approximate; dec = (decimal) num; // dec is 0
Sorry, something went wrong.
9bced24
Merge pull request #19 from iiwaasnet/fb/decimal-conversion-fix
e7755bb
Fixes #18
No branches or pull requests
Rational created with negative numerator and denominator gives 0 when casting to decimal. Isn't it a bug?
The text was updated successfully, but these errors were encountered: