dis-bench / src /php /php-src /ext /bcmath /tests /number /construct_float.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
305 Bytes
--TEST--
BcMath\Number construct float
--EXTENSIONS--
bcmath
--FILE--
<?php
$num = new BcMath\Number(0.1234);
var_dump($num);
?>
--EXPECTF--
Deprecated: Implicit conversion from float 0.1234 to int loses precision in %s
object(BcMath\Number)#1 (2) {
["value"]=>
string(1) "0"
["scale"]=>
int(0)
}