Download src/php/php-src/ext/bcmath/tests/number/construct_float.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 305 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bcmath/tests/number/construct_float.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/bcmath/tests/number/construct_float.phpt
-
curl -L -o construct_float.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bcmath/tests/number/construct_float.phpt
305 Bytes
| --TEST-- | |
| BcMath\Number construct float | |
| --EXTENSIONS-- | |
| bcmath | |
| --FILE-- | |
| $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) | |
| } | |