yunruse / Noether

Just another units package
MIT License
9 stars 0 forks source link

Units with zero value generate a `ValueError`. #9

Closed yunruse closed 1 year ago

yunruse commented 1 year ago

Steps

>>> meter(0)

Expected behaviour

0 m  # length

Actual behaviour

  File ".../noether/catalogue/info/comparison.py", line 96, in get_comparisons
    relative = abs(log(measure / unit))
                   ^^^^^^^^^^^^^^^^^^^
ValueError: math domain error