josdejong / josdejong/mathjs

Accept `var` in place of `VAR` as unit for volt-ampere reactive, as specified by IEC and SI

Open
#3,613 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
`var`, according to the IEC, is the correct unit for volt-ampere reactive, not `VAR`. The latter is accepted by MathJS, while the former is not!
See [here](https://en.wikipedia.org/wiki/Volt-ampere#Volt-ampere_reactive) for links and info.

**To Reproduce**

```
(new Unit(1, 'VAR')).format() // works. It should not, or only as an alias
(new Unit(1, 'var')).format() // fails. It should!
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.