note 86303 added to function.ceil

xyan@@@xyan.name
Newsgroups php.notes
Message-ID <[email protected]>
check this:
<?php
function ceiling($num, $dig){
	$times = 1;
	for ($i = 1; $i<=$dig; $i++){
		$times .= '0';
	}
	return ceil($num * $times) / $times;
}

ceiling('5.5511', '2');//5.56
ceiling('5.5566', '2');//5.56
ceiling('5.5511', '3');//5.552
ceiling('5.5566', '3');//5.557
ceiling('-5.5511', '2');//-5.55
ceiling('-5.5566', '2');//-5.55
ceiling('-5.5511', '3');//-5.551
ceiling('-5.5566', '3');//-5.556
?>
----
Server IP: 210.51.44.91
Probable Submitter: 60.12.36.222
----
Manual Page -- http://www.php.net/manual/en/function.ceil.php
Edit        -- https://master.php.net/note/edit/86303
Del: integrated  -- https://master.php.net/note/delete/86303/integrated
Del: useless     -- https://master.php.net/note/delete/86303/useless
Del: bad code    -- https://master.php.net/note/delete/86303/bad+code
Del: spam        -- https://master.php.net/note/delete/86303/spam
Del: non-english -- https://master.php.net/note/delete/86303/non-english
Del: in docs     -- https://master.php.net/note/delete/86303/in+docs
Del: other reasons-- https://master.php.net/note/delete/86303
Reject      -- https://master.php.net/note/reject/86303
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.