Addition of power / energy units to Intl.NumberFormat

Hi all,

The Intl.NumberFormat object been fantastic to use so far, but while writing something for electric vehicles I was wondering whether the addition of units for power / energy has been considered and/or what obstacles there might have been in, as they are not part of the subset (yet)?

The TC39 document links to the "Common Locale Data Repository release 38 unit validity data" which fortunately does seem to list e.g:

  • power-watt (milli, kilo, mega, giga)
  • energy-kilowatt-hour
  • electric-volt
  • electric-ohm

Thank you for your time!

3 Likes