SciNim / Unchained

A fully type safe, compile time only units library.
https://scinim.github.io/Unchained
109 stars 0 forks source link

Math with SI & imperial mix don't convert in some cases #29

Closed Vindaar closed 1 year ago

Vindaar commented 1 year ago

Reported by @arkanoid87 on matrix/discord:

import unchained

let x = 5.m
let y = 3.ft⁻¹

echo x * y
# results in
# 15 Meter•Foot⁻¹

As both are length units, ft should be auto converted to SI.

Vindaar commented 1 year ago

Fixed via #30.