You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library makes no attempt to support MathML, but you can probably build some custom support be inspecting the numerator and denominator of a particular instance of a unit.
What i mean is Unit.new("1000 min^-1").to_s #=> retrurns "1000 1/min"
maybe it should return "1000 min^-1" in gerneral for readability if only units exists with power of -1. This would be also allow to directly use it inline in Katex string.
is there at the moment any methods for getting nummerator and denominator for only the Unit part ("1/min")?
Fixes#335
Add `format: :exponential` as an option on `#to_s` and `units`.
This will formate the unit with all units treated like exponentials, ones in the denominator will have negative powers.
Unit.new("1000 min^-1") is shown as 1000 1/min but it looks like 10001/min in mathml
units with numerator = 1 in unit fraction should use notation like 1000 min^-1 with tag
The text was updated successfully, but these errors were encountered: