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
2.2.614
Math functions around the integer boundary should work, for example adding 1 to int.MaxValue
Liquid error: Arithmetic operation resulted in an overflow.
public void TestPlusNumericBoundary() { Helper.AssertTemplateResult( expected: "2147483648", template: "{{ big | plus: 1 }}", localVariables: Hash.FromAnonymousObject(new { big = int.MaxValue })); Helper.AssertTemplateResult( expected: "79228162514264337593543950336", template: "{{ big | plus: 1 }}", localVariables: Hash.FromAnonymousObject(new { big = decimal.MaxValue })); }
The text was updated successfully, but these errors were encountered:
https://replit.com/@microalps/LiquidMathStrings#main.rb shows that ruby liquid works with large numbers. That is because natively ruby handles type conversion and doesn't throw an overflow or wrap around.
Sorry, something went wrong.
Handle integer numbers beyond the range of 32 bit integer but still w…
cf7d141
…ithin 64 bit integer range. Fixes #483
daviburg
Successfully merging a pull request may close this issue.
Dotliquid version
2.2.614
Expected behavior
Math functions around the integer boundary should work, for example adding 1 to int.MaxValue
Actual behavior
Liquid error: Arithmetic operation resulted in an overflow.
Steps to reproduce the Problem (you can add files)
The text was updated successfully, but these errors were encountered: