Skip to content

fix(units): use var instead of VAR#3615

Draft
adrfantini wants to merge 1 commit intojosdejong:developfrom
adrfantini:fix/use-var-not-VAR
Draft

fix(units): use var instead of VAR#3615
adrfantini wants to merge 1 commit intojosdejong:developfrom
adrfantini:fix/use-var-not-VAR

Conversation

@adrfantini
Copy link

Closes #3613

VAR was kept as alias for backwards compatibility

@gwhitney
Copy link
Collaborator

Like "Ah" (#3617),

  • Seems straightforward, presuming Wikipedia is correct that var is the official unit name, but I defer to Jos on units.
  • Needs work on tests (some are failing, maybe the branch needs syncing?) and both var and VAR need to be tested.
  • Needs documentation updated, at least in docs/datatypes/unit.md

One other question: the Wikipedia link says that Var and VAr are common alternate spellings. Should mathjs also accept those?

@adrfantini
Copy link
Author

One other question: the Wikipedia link says that Var and VAr are common alternate spellings. Should mathjs also accept those?

Probably, yes, in fact.

I'll update this MR as well as the others as soon as possible, although that might well be a few days or weeks

@adrfantini adrfantini marked this pull request as draft January 3, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants