File tree Expand file tree Collapse file tree 10 files changed +30
-10
lines changed
Expand file tree Collapse file tree 10 files changed +30
-10
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ public static function getSymbol(): string
1919 public static function getFactor (): Number
2020 {
2121 // 1e-2 = 1 / 1e2
22- return new Number (1 )->div (10 ** 2 , 2 );
22+ $ base = new Number (1 );
23+
24+ return $ base ->div (10 ** 2 , 2 );
2325 }
2426}
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ public static function getSymbol(): string
1919 public static function getFactor (): Number
2020 {
2121 // 1e-1 = 1 / 1e1
22- return new Number (1 )->div (10 ** 1 , 1 );
22+ $ base = new Number (1 );
23+
24+ return $ base ->div (10 ** 1 , 1 );
2325 }
2426}
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ public static function getSymbol(): string
1919 public static function getFactor (): Number
2020 {
2121 // 1e-6 = 1 / 1e6
22- return new Number (1 )->div (10 ** 6 , 6 );
22+ $ base = new Number (1 );
23+
24+ return $ base ->div (10 ** 6 , 6 );
2325 }
2426}
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ public static function getSymbol(): string
1919 public static function getFactor (): Number
2020 {
2121 // 1e-3 = 1 / 1e3
22- return new Number (1 )->div (10 ** 3 , 3 );
22+ $ base = new Number (1 );
23+
24+ return $ base ->div (10 ** 3 , 3 );
2325 }
2426}
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ public static function getSymbol(): string
1919 public static function getFactor (): Number
2020 {
2121 // 1e-9 = 1 / 1e9
22- return new Number (1 )->div (10 ** 9 , 9 );
22+ $ base = new Number (1 );
23+
24+ return $ base ->div (10 ** 9 , 9 );
2325 }
2426}
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ public static function getSymbol(): string
1919 public static function getFactor (): Number
2020 {
2121 // 1e-12 = 1 / 1e12
22- return new Number (1 )->div (10 ** 12 , 12 );
22+ $ base = new Number (1 );
23+
24+ return $ base ->div (10 ** 12 , 12 );
2325 }
2426}
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ public static function getSymbol(): string
1818
1919 public static function getFactor (): Number
2020 {
21- return new Number (1 )->div (10 ** 6 , 6 );
21+ $ base = new Number (1 );
22+
23+ return $ base ->div (10 ** 6 , 6 );
2224 }
2325}
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ public static function getSymbol(): string
1919 public static function getFactor (): Number
2020 {
2121 // 1e-3 = 1 / 1e3
22- return new Number (1 )->div (10 ** 3 , 3 );
22+ $ base = new Number (1 );
23+
24+ return $ base ->div (10 ** 3 , 3 );
2325 }
2426}
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ public static function getSymbol(): string
1818
1919 public static function getFactor (): Number
2020 {
21- return new Number (1 )->div (10 ** 9 , 9 );
21+ $ base = new Number (1 );
22+
23+ return $ base ->div (10 ** 9 , 9 );
2224 }
2325}
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ public static function getSymbol(): string
1818
1919 public static function getFactor (): Number
2020 {
21- return new Number (1 )->div (10 ** 12 , 12 );
21+ $ base = new Number (1 );
22+
23+ return $ base ->div (10 ** 12 , 12 );
2224 }
2325}
You can’t perform that action at this time.
0 commit comments