codepad
[
create a new paste
]
login
|
about
Link:
http://codepad.org/Sn596vIg
[
raw code
|
output
|
fork
]
PHP
,
pasted on Oct 3:
1
2
3
4
5
<?php
$number
=
10.046
;
echo
number_format
(
$number
,
2
);
// 10.05
Output:
1
10.05
Create a new paste based on this one
Comments: