codepad
[
create a new paste
]
login
|
about
Link:
http://codepad.org/yqaqMnuV
[
raw code
|
output
|
fork
|
1 comment
]
PHP
,
pasted on Sep 5:
1
2
3
4
5
6
<?php
$value
=
49.955
;
echo
sprintf
(
"%1.2f"
,
$value
);
?>
Output:
1
49.95
Create a new paste based on this one
Comments:
posted by
abbc
on Apr 15
24.4005
reply