Getting a list of all available units #2805
-
Hi all, I'm using mathjs mainly for its unit functionality. Specifically, users can input values and units to convert between them. Later, I might add calculations. It would be helpful to give the users a list of all units that are available (even user-defined ones). I've been looking at the documentation and only found a list in the unit references. Am I over-looking something? Is this functionality already available? If not, this is a feature request ;) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I believe the list you are looking for is in math.Unit.UNITS. Give that a try and let us know if it has the information you need. |
Beta Was this translation helpful? Give feedback.
I believe the list you are looking for is in math.Unit.UNITS. Give that a try and let us know if it has the information you need.