@@ -16,25 +16,21 @@ $values2 = [
16
16
$ value1 = new BcMath \Number ('100.0000 ' );
17
17
18
18
foreach ($ values2 as [$ value2 , $ type2 ]) {
19
- try {
20
- echo "========== with {$ type2 } ========== \n" ;
21
- echo "{$ value1 } > {$ type2 }: " . ($ value1 > $ value2 ? 'true ' : 'false ' ) . "\n" ;
22
- echo "{$ value1 } >= {$ type2 }: " . ($ value1 >= $ value2 ? 'true ' : 'false ' ) . "\n" ;
23
- echo "{$ value1 } == {$ type2 }: " . ($ value1 == $ value2 ? 'true ' : 'false ' ) . "\n" ;
24
- echo "{$ value1 } <= {$ type2 }: " . ($ value1 <= $ value2 ? 'true ' : 'false ' ) . "\n" ;
25
- echo "{$ value1 } < {$ type2 }: " . ($ value1 < $ value2 ? 'true ' : 'false ' ) . "\n" ;
19
+ echo "========== with {$ type2 } ========== \n" ;
20
+ echo "{$ value1 } > {$ type2 }: " . ($ value1 > $ value2 ? 'true ' : 'false ' ) . "\n" ;
21
+ echo "{$ value1 } >= {$ type2 }: " . ($ value1 >= $ value2 ? 'true ' : 'false ' ) . "\n" ;
22
+ echo "{$ value1 } == {$ type2 }: " . ($ value1 == $ value2 ? 'true ' : 'false ' ) . "\n" ;
23
+ echo "{$ value1 } <= {$ type2 }: " . ($ value1 <= $ value2 ? 'true ' : 'false ' ) . "\n" ;
24
+ echo "{$ value1 } < {$ type2 }: " . ($ value1 < $ value2 ? 'true ' : 'false ' ) . "\n" ;
26
25
27
- echo "\ninversion \n" ;
28
- echo "{$ type2 } > {$ value1 }: " . ($ value2 > $ value1 ? 'true ' : 'false ' ) . "\n" ;
29
- echo "{$ type2 } >= {$ value1 }: " . ($ value2 >= $ value1 ? 'true ' : 'false ' ) . "\n" ;
30
- echo "{$ type2 } == {$ value1 }: " . ($ value2 == $ value1 ? 'true ' : 'false ' ) . "\n" ;
31
- echo "{$ type2 } <= {$ value1 }: " . ($ value2 <= $ value1 ? 'true ' : 'false ' ) . "\n" ;
32
- echo "{$ type2 } < {$ value1 }: " . ($ value2 < $ value1 ? 'true ' : 'false ' ) . "\n" ;
26
+ echo "\ninversion \n" ;
27
+ echo "{$ type2 } > {$ value1 }: " . ($ value2 > $ value1 ? 'true ' : 'false ' ) . "\n" ;
28
+ echo "{$ type2 } >= {$ value1 }: " . ($ value2 >= $ value1 ? 'true ' : 'false ' ) . "\n" ;
29
+ echo "{$ type2 } == {$ value1 }: " . ($ value2 == $ value1 ? 'true ' : 'false ' ) . "\n" ;
30
+ echo "{$ type2 } <= {$ value1 }: " . ($ value2 <= $ value1 ? 'true ' : 'false ' ) . "\n" ;
31
+ echo "{$ type2 } < {$ value1 }: " . ($ value2 < $ value1 ? 'true ' : 'false ' ) . "\n" ;
33
32
34
- echo "\n" ;
35
- } catch (Throwable $ e ) {
36
- echo $ e ::class, ': ' , $ e ->getMessage (), PHP_EOL ;
37
- }
33
+ echo "\n" ;
38
34
}
39
35
?>
40
36
--EXPECT--
0 commit comments