Skip to content

Conversation

@rabrowne85
Copy link
Contributor

The purpose of this PR is to add support for SI units (and their derived units).

The function accepts the unit to display in and then options to customise the use of the prefixes.

The use of exponents less than 3 is disabled by default as this seems to be the most commonly expected result - it's very rare to display things in hg (not to mention this is confusing for the symbol for Mercury). However, if someone wants to use the exponents -2, -1, 1 and 2 they can pass the false flag to the function.

@rabrowne85 rabrowne85 added the enhancement New feature or request label Feb 12, 2025
@rabrowne85 rabrowne85 merged commit 36ee1a7 into master Feb 12, 2025
6 checks passed
@rabrowne85 rabrowne85 deleted the feat/add-si-unit-format branch February 12, 2025 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants