Home
last modified time | relevance | path

Searched refs:rounding (Results 1 – 16 of 16) sorted by relevance

/php-src/ext/standard/tests/math/
H A Dround_valid_rounding_mode.phpt2 round() rejects invalid rounding modes.
12 round(): Argument #3 ($mode) must be a valid rounding mode (PHP_ROUND_*)
H A Dround_gh12143_1.phpt2 GH-12143: Test rounding of 0.49999999999999994.
H A Dround_gh12143_2.phpt2 GH-12143: Test rounding of 0.50000000000000011.
H A Dround_gh12143_3.phpt2 GH-12143: Test rounding of 0.5.
H A Dround_gh12143_4.phpt2 GH-12143: Test rounding of 1.5.
H A Dround_modes_zeros.phpt2 round() with different rounding modes for zeros
H A Dround_modes.phpt2 round() with different rounding modes
/php-src/Zend/tests/
H A Ddval_to_lval_32.phpt18 /* see if we're rounding negative numbers right */
/php-src/ext/intl/tests/formatter/
H A Drounding_modes.phpt2 NumberFormatter: rounding modes
/php-src/Zend/
H A Dzend_strtod.c1926 switch(rounding) {
1950 switch(rounding) {
2038 switch (rounding) {
2074 switch(rounding) {
2120 switch(rounding) {
2341 if (bc->rounding == 1)
2550 bc.rounding = 1;
2856 bc.rounding = bc.rounding == 2 ? 0 : 2;
2859 bc.rounding = 0;
3044 if (bc.rounding != 1)
[all …]
H A DZend.m47 dnl See: http://wiki.php.net/rfc/rounding
/php-src/
H A DUPGRADING423 . The internal implementation for rounding to integers has been rewritten
425 Some rounding bugs have been fixed as a result of the rewrite. For
426 example previously rounding 0.49999999999999994 to the nearest integer
439 . Fixed a bug caused by "pre-rounding" of the round() function. Previously, using
440 "pre-rounding" to treat a value like 0.285 (actually 0.28499999999999998) as a
441 decimal number and round it to 0.29. However, "pre-rounding" incorrectly rounds
442 certain numbers, so this fix removes "pre-rounding" and changes the way numbers
H A DNEWS235 . Fix GH-12252 (round(): Validate the rounding mode). (timwolla)
242 . Add support for 4 new rounding modes to the round() function. (Jorg Sowa)
/php-src/ext/standard/tests/strings/
H A Dstrlen.phpt114 /* Here two different outputs, which depends on the rounding value
H A Dstrcasecmp.phpt107 /* Here two different outputs, which depends on the rounding value
H A Dstrcmp.phpt107 /* Here two different outputs, which depends on the rounding value

Completed in 33 milliseconds