Unit: Add SI prefix for empty unit (#79897)

* Unit: Add SI prefix for empty unit

* Units: Change name from SI prefix to SI short
This commit is contained in:
Daniel Reimhult 2024-02-23 14:24:12 +01:00 committed by GitHub
parent 7730a38474
commit 43b186a52e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,6 +45,7 @@ export const getCategories = (): ValueFormatCategory[] => [
id: 'short',
fn: scaledUnits(1000, ['', ' K', ' Mil', ' Bil', ' Tri', ' Quadr', ' Quint', ' Sext', ' Sept']),
},
{ name: 'SI short', id: 'sishort', fn: SIPrefix('') },
{ name: 'Percent (0-100)', id: 'percent', fn: toPercent },
{ name: 'Percent (0.0-1.0)', id: 'percentunit', fn: toPercentUnit },
{ name: 'Humidity (%H)', id: 'humidity', fn: toFixedUnit('%H') },