From 3014eb82cf13fcb8d09c9d26839fd66d808e446b Mon Sep 17 00:00:00 2001 From: Mike Stupalov Date: Fri, 3 Nov 2023 16:26:29 +0300 Subject: [PATCH] Added quetta and ronna Si/IEC prefixes. --- source/HasIECUnitsTrait.php | 12 ++++++++++++ source/HasSIUnitsTrait.php | 10 ++++++++++ 2 files changed, 22 insertions(+) diff --git a/source/HasIECUnitsTrait.php b/source/HasIECUnitsTrait.php index 502ca00..7cadbc9 100644 --- a/source/HasIECUnitsTrait.php +++ b/source/HasIECUnitsTrait.php @@ -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', diff --git a/source/HasSIUnitsTrait.php b/source/HasSIUnitsTrait.php index acc6a87..0d18ad2 100644 --- a/source/HasSIUnitsTrait.php +++ b/source/HasSIUnitsTrait.php @@ -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',