--TEST-- bcdiv() function div by one --EXTENSIONS-- bcmath --INI-- bcmath.scale=0 --FILE-- --EXPECT-- scale: 0 100 / 1.010 = 99 -100 / 1.010 = -99 100 / 1.01 = 99 -100 / 1.01 = -99 100 / 1.1 = 90 -100 / 1.1 = -90 100 / 1 = 100 -100 / 1 = -100 100 / -1.010 = -99 -100 / -1.010 = 99 100 / -1.01 = -99 -100 / -1.01 = 99 100 / -1.1 = -90 -100 / -1.1 = 90 100 / -1 = -100 -100 / -1 = 100 scale: 1 100 / 1.010 = 99.0 -100 / 1.010 = -99.0 100 / 1.01 = 99.0 -100 / 1.01 = -99.0 100 / 1.1 = 90.9 -100 / 1.1 = -90.9 100 / 1 = 100.0 -100 / 1 = -100.0 100 / -1.010 = -99.0 -100 / -1.010 = 99.0 100 / -1.01 = -99.0 -100 / -1.01 = 99.0 100 / -1.1 = -90.9 -100 / -1.1 = 90.9 100 / -1 = -100.0 -100 / -1 = 100.0 scale: 2 100 / 1.010 = 99.00 -100 / 1.010 = -99.00 100 / 1.01 = 99.00 -100 / 1.01 = -99.00 100 / 1.1 = 90.90 -100 / 1.1 = -90.90 100 / 1 = 100.00 -100 / 1 = -100.00 100 / -1.010 = -99.00 -100 / -1.010 = 99.00 100 / -1.01 = -99.00 -100 / -1.01 = 99.00 100 / -1.1 = -90.90 -100 / -1.1 = 90.90 100 / -1 = -100.00 -100 / -1 = 100.00 scale: 3 100 / 1.010 = 99.009 -100 / 1.010 = -99.009 100 / 1.01 = 99.009 -100 / 1.01 = -99.009 100 / 1.1 = 90.909 -100 / 1.1 = -90.909 100 / 1 = 100.000 -100 / 1 = -100.000 100 / -1.010 = -99.009 -100 / -1.010 = 99.009 100 / -1.01 = -99.009 -100 / -1.01 = 99.009 100 / -1.1 = -90.909 -100 / -1.1 = 90.909 100 / -1 = -100.000 -100 / -1 = 100.000