Converting Temperatures without using deg and using ºC or C #3224
Replies: 2 comments 2 replies
-
You can override the EDIT: you also have to update |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm probably doing the overwrite portion wrong, not sure, but I get an error when trying: import * as math from "mathjs";
math.parse.isAlpha = function (char, charPrev, charNext) {
return /^[a-zA-Zº°]$/.test(char);
};
console.log(math.parse.isAlpha("º"));
math.createUnit("º", "1 deg"); The console.log comes as true, but the console then errors with:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be possible to use the
evaluate("30ºC to ºF")
instead of having to doevaluate("30degC to degF")
Is this some kind of limitation?
Beta Was this translation helpful? Give feedback.
All reactions