josdejong / mathjs

An extensive math library for JavaScript and Node.js

Home Page:https://mathjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support new metric prefixes: Q, R, r, and q

AlexEdgcomb opened this issue · comments

Describe the feature

BIPM adopted 4 new metric prefixes in 2022: Q(uetta), R(onna), r(onto), and q(uecto)
https://en.wikipedia.org/wiki/Metric_prefix#List_of_SI_prefixes

Note: New binary prefixes are not yet adopted:
https://en.wikipedia.org/wiki/Binary_prefix#Definitions

To Reproduce

Running math.unit('Qm'); yields SyntaxError: Unit "Qm" not found..

For example:

  1. Go to https://codepen.io/alexedgcomb/pen/wvOwxgX
    Observed: Pop-up saying SyntaxError: Unit "Qm" not found.
    Expected: No pop-up

Implemented now in v12.3.0 via #3113.