1--TEST-- 2round() works correctly for large exponents 3--FILE-- 4<?php 5var_dump (2e-22 == round (2e-22, 22, PHP_ROUND_HALF_UP)); 6var_dump (1e-22 == round (1e-22, 22, PHP_ROUND_HALF_UP)); 7var_dump (2e-23 == round (2e-23, 23, PHP_ROUND_HALF_UP)); 8var_dump (1e-23 == round (1e-23, 23, PHP_ROUND_HALF_UP)); 9var_dump (2e-24 == round (2e-24, 24, PHP_ROUND_HALF_UP)); 10var_dump (1e-24 == round (1e-24, 24, PHP_ROUND_HALF_UP)); 11var_dump (2e22 == round (2e22, -22, PHP_ROUND_HALF_UP)); 12var_dump (1e22 == round (1e22, -22, PHP_ROUND_HALF_UP)); 13var_dump (2e23 == round (2e23, -23, PHP_ROUND_HALF_UP)); 14var_dump (1e23 == round (1e23, -23, PHP_ROUND_HALF_UP)); 15var_dump (2e24 == round (2e24, -24, PHP_ROUND_HALF_UP)); 16var_dump (1e24 == round (1e24, -24, PHP_ROUND_HALF_UP)); 17?> 18--EXPECT-- 19bool(true) 20bool(true) 21bool(true) 22bool(true) 23bool(true) 24bool(true) 25bool(true) 26bool(true) 27bool(true) 28bool(true) 29bool(true) 30bool(true) 31