|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-20 04:44 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
in short these should all pring 29.99. they don't: <?php $discountrate = 10; $i = 299.99/100 * $discountrate; echo "$i\n"; echo sprintf("%.2f",$i), "\n"; echo round($i, 2), "\n"; ?>