printfn / fend

Arbitrary-precision unit-aware calculator
https://printfn.github.io/fend
MIT License
628 stars 51 forks source link

Units in the denominator are treated as multiplying the entire division #305

Open Lilith-In-Starlight opened 1 month ago

Lilith-In-Starlight commented 1 month ago

At least in the web demo, (1ly * 2ly) / 1ly is treated as ((1ly * 2ly) / 1) * ly instead of the more expected (1ly * 2ly) / (1ly). Writing the parentheses around the denominator fixes the issue.

printfn commented 1 month ago

Thanks for the report! This is another instance of https://github.com/printfn/fend/issues/76.