Skip to content

Commit

Permalink
Added quetta and ronna Si/IEC prefixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
landy2005 committed Nov 3, 2023
1 parent 60cd6cf commit 3014eb8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/HasIECUnitsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ protected static function addMissingIECPrefixedUnits(
],

// Partial list of SI prefixes (not all used for storages)
[
'abbr_prefix' => 'Q',
'long_prefix' => 'quetta',
'factor' => 1e30,
'si' => 10
],
[
'abbr_prefix' => 'R',
'long_prefix' => 'ronna',
'factor' => 1e27,
'si' => 9
],
[
'abbr_prefix' => 'Y',
'long_prefix' => 'yotta',
Expand Down
10 changes: 10 additions & 0 deletions source/HasSIUnitsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ protected static function addMissingSIPrefixedUnits(
* The standard set of SI prefixes
*/
$siPrefixes = [
[
'abbr_prefix' => 'Q',
'long_prefix' => 'quetta',
'factor' => 1e30
],
[
'abbr_prefix' => 'R',
'long_prefix' => 'ronna',
'factor' => 1e27
],
[
'abbr_prefix' => 'Y',
'long_prefix' => 'yotta',
Expand Down

0 comments on commit 3014eb8

Please sign in to comment.