Cannot use defined Unit using ° (U+00B0) #2672
Answered
by
josdejong
modellking
asked this question in
Q&A
-
Documentation states that the only barrier to adding extended character support is overwriting the Unit.isValidAlpha method (https://mathjs.org/docs/datatypes/units.html#support-of-custom-characters-in-unit-names) The following code produces an Error
Error: This is reproducible in the demo JSBin (2021-11-15) and Version 9.4.1 Thank you for your library. |
Beta Was this translation helpful? Give feedback.
Answered by
josdejong
Nov 17, 2021
Replies: 1 comment
-
You'll also have to override the See #1268 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
josdejong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll also have to override the
isAlpha
of the expression parser,math.expression.parse.isAlpha
.See #1268