--TEST-- Test round() - basic function test for round() --INI-- precision=14 --FILE-- "; var_dump($res); } } ?> --EXPECTF-- *** Testing round() : basic functionality *** round: 123456789 ...with precision 2-> float(123456789) ...with precision 8-> float(123456789) ...with precision 3-> float(123456789) ...with precision 4-> float(123456789) Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d ...with precision 3.6-> float(123456789) ...with precision 2-> float(123456789) ...with precision 04-> float(123456789) Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d ...with precision 3.6-> float(123456789) ...with precision 2.1e1-> float(123456789) ...with precision 1-> float(123456789) ...with precision -> float(123456789) round: 123.456789 ...with precision 2-> float(123.46) ...with precision 8-> float(123.456789) ...with precision 3-> float(123.457) ...with precision 4-> float(123.4568) Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d ...with precision 3.6-> float(123.457) ...with precision 2-> float(123.46) ...with precision 04-> float(123.4568) Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d ...with precision 3.6-> float(123.457) ...with precision 2.1e1-> float(123.456789) ...with precision 1-> float(123.5) ...with precision -> float(123) round: -4.5679123 ...with precision 2-> float(-4.57) ...with precision 8-> float(-4.5679123) ...with precision 3-> float(-4.568) ...with precision 4-> float(-4.5679) Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d ...with precision 3.6-> float(-4.568) ...with precision 2-> float(-4.57) ...with precision 04-> float(-4.5679) Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d ...with precision 3.6-> float(-4.568) ...with precision 2.1e1-> float(-4.5679123) ...with precision 1-> float(-4.6) ...with precision -> float(-5) round: 12300 ...with precision 2-> float(12300) ...with precision 8-> float(12300) ...with precision 3-> float(12300) ...with precision 4-> float(12300) Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d ...with precision 3.6-> float(12300) ...with precision 2-> float(12300) ...with precision 04-> float(12300) Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d ...with precision 3.6-> float(12300) ...with precision 2.1e1-> float(12300) ...with precision 1-> float(12300) ...with precision -> float(12300) round: -4567 ...with precision 2-> float(-4567) ...with precision 8-> float(-4567) ...with precision 3-> float(-4567) ...with precision 4-> float(-4567) Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d ...with precision 3.6-> float(-4567) ...with precision 2-> float(-4567) ...with precision 04-> float(-4567) Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d ...with precision 3.6-> float(-4567) ...with precision 2.1e1-> float(-4567) ...with precision 1-> float(-4567) ...with precision -> float(-4567) round: 2311527 ...with precision 2-> float(2311527) ...with precision 8-> float(2311527) ...with precision 3-> float(2311527) ...with precision 4-> float(2311527) Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d ...with precision 3.6-> float(2311527) ...with precision 2-> float(2311527) ...with precision 04-> float(2311527) Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d ...with precision 3.6-> float(2311527) ...with precision 2.1e1-> float(2311527) ...with precision 1-> float(2311527) ...with precision -> float(2311527) round: 14680063 ...with precision 2-> float(14680063) ...with precision 8-> float(14680063) ...with precision 3-> float(14680063) ...with precision 4-> float(14680063) Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d ...with precision 3.6-> float(14680063) ...with precision 2-> float(14680063) ...with precision 04-> float(14680063) Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d ...with precision 3.6-> float(14680063) ...with precision 2.1e1-> float(14680063) ...with precision 1-> float(14680063) ...with precision -> float(14680063) round: 1.234567 ...with precision 2-> float(1.23) ...with precision 8-> float(1.234567) ...with precision 3-> float(1.235) ...with precision 4-> float(1.2346) Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d ...with precision 3.6-> float(1.235) ...with precision 2-> float(1.23) ...with precision 04-> float(1.2346) Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d ...with precision 3.6-> float(1.235) ...with precision 2.1e1-> float(1.234567) ...with precision 1-> float(1.2) ...with precision -> float(1) round: 2.3456789e8 ...with precision 2-> float(234567890) ...with precision 8-> float(234567890) ...with precision 3-> float(234567890) ...with precision 4-> float(234567890) Deprecated: Implicit conversion from float 3.6 to int loses precision in %s on line %d ...with precision 3.6-> float(234567890) ...with precision 2-> float(234567890) ...with precision 04-> float(234567890) Deprecated: Implicit conversion from float-string "3.6" to int loses precision in %s on line %d ...with precision 3.6-> float(234567890) ...with precision 2.1e1-> float(234567890) ...with precision 1-> float(234567890) ...with precision -> float(234567890)