1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/bcmath/tests/bug66364.phpt
Jorg Adam Sowa ee22612856 Extend tests of bcmath extension (#11563)
Add coverage for:

 * different formats of zero (0, 0.0)
 * small integers and decimals
 * large integers and large decimals with large fractional part
 * negative numbers for all of the above ones
2023-07-05 17:43:30 +01:00

11 lines
163 B
PHP

--TEST--
Bug #66364 (BCMath bcmul ignores scale parameter)
--EXTENSIONS--
bcmath
--FILE--
<?php
var_dump(bcmul('0.3', '0.2', 4));
?>
--EXPECT--
string(6) "0.0600"