Configurable unit formatting #2738
Replies: 8 comments 4 replies
-
I'd love to see an |
Beta Was this translation helpful? Give feedback.
-
Here's a list of ideas of taken from all the related issues so far:
|
Beta Was this translation helpful? Give feedback.
-
Thanks @ericman314 for collecting all these ideas 👍 ! I think predictability and no side effects are indeed very important, and more configuration options can make that work.
I think that should not be the case, every math instance should have it's own instance of About global config vs. options: may depend on which direction we want to go with Unit.js too, see #1486. @ericman314 if you start playing around with implementing these ideas, can you please create a branch based on |
Beta Was this translation helpful? Give feedback.
-
You bet, these will all be breaking changes anyway. |
Beta Was this translation helpful? Give feedback.
-
FYI: I've merged |
Beta Was this translation helpful? Give feedback.
-
Is there any news on this one? |
Beta Was this translation helpful? Give feedback.
-
I'm working on it in https://github.com/ericman314/UnitMath. Most of the checklist items above have been addressed. There's just a bit more work to do regarding custom units, and when it's ready we'll schedule it for the v7 release I think, with UnitMath as a Math.js dependency. |
Beta Was this translation helpful? Give feedback.
-
Just to add to the cluster of thoughts/ideas about unit formatting and processing, there is now a UnitsML specification for expressions with units that mathjs/UnitMath could think about integrating with/harmonizing with: https://www.unitsml.org/ |
Beta Was this translation helpful? Give feedback.
-
The formatting of units works well 90% of the time, but sometimes the results are surprising. We should make the formatting of units transparent and totally configurable. The current behavior is strange enough to have drawn a lot of issues.
A successful fix ought to address most of these related issues:
#1481
#1452
#1449
#1314
#1306
#1300
#1282
#1008
#898
Beta Was this translation helpful? Give feedback.
All reactions