Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#3563·mathjs

Bad parse for adding percentages

Author: gwhitneyCreated Oct 22, 2025Updated Apr 27, 2026
Labelsbugcategory:expressions

It turns out the expression 10% + 20% is parsed right now as 10 % ((+20) / 100) (so: the first % is interpreted as mod).

Originally posted by @josdejong in https://github.com/josdejong/mathjs/discussions/2861#discussioncomment-14752338

Source: josdejong/mathjs

View original on GitHubView discussion on GitHub