--TEST-- BcMath\Number increment --EXTENSIONS-- bcmath --FILE-- --EXPECT-- ========== 100++ ========== $num: object(BcMath\Number)#2 (2) { ["value"]=> string(3) "101" ["scale"]=> int(0) } $num_old: object(BcMath\Number)#1 (2) { ["value"]=> string(3) "100" ["scale"]=> int(0) } ========== -20++ ========== $num: object(BcMath\Number)#1 (2) { ["value"]=> string(3) "-19" ["scale"]=> int(0) } $num_old: object(BcMath\Number)#3 (2) { ["value"]=> string(3) "-20" ["scale"]=> int(0) } ========== 0.01++ ========== $num: object(BcMath\Number)#3 (2) { ["value"]=> string(4) "1.01" ["scale"]=> int(2) } $num_old: object(BcMath\Number)#2 (2) { ["value"]=> string(4) "0.01" ["scale"]=> int(2) } ========== -0.40++ ========== $num: object(BcMath\Number)#2 (2) { ["value"]=> string(4) "0.60" ["scale"]=> int(2) } $num_old: object(BcMath\Number)#1 (2) { ["value"]=> string(5) "-0.40" ["scale"]=> int(2) }