-
Hi I asked this question related to earlier on how to to get all the available units and just wanted to confirm that the solution in this #2805 is the only way to get valid units list? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, I wouldn't say it's the only way. There might be many ways, but I would recommend exploring I personally think the answer proposed at #3178 (comment) is very complete. Maybe you don't need all prefixes so you can skip some steps. You could find similar solutions in various places in this project. Which might be useful to your needs.
|
Beta Was this translation helpful? Give feedback.
Hi, I wouldn't say it's the only way. There might be many ways, but I would recommend exploring
math.Unit.UNITS
to find a way to match your specific needs.I personally think the answer proposed at #3178 (comment) is very complete. Maybe you don't need all prefixes so you can skip some steps.
You could find similar solutions in various places in this project. Which might be useful to your needs.
mathjs/bin/cli.js
Lines 123 to 152 in 02f195f