Mercerenies / fifi-calculator

1 stars 0 forks source link

Exactness failure on unit conversions with fractional flag off #138

Open Mercerenies opened 1 month ago

Mercerenies commented 1 month ago

Unit conversions are resorting to floating-point numbers too often.

Mercerenies commented 1 month ago

See the (currently ignored) test for the intended behavior: https://github.com/Mercerenies/fifi-calculator/blob/b1efe0d/src-tauri/src/command/units.rs#L453-L465

Mercerenies commented 1 month ago

This is a bug relating from the feature introduced by #127