Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
php format a number
reenadak
Nov 8th, 2017
91
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
PHP
0.10 KB
| None
|
0
0
raw
download
clone
embed
print
report
format a number with two digit after decimal place
echo
number_format
(
(
float
)
$number
,
2
,
'.'
,
''
)
;
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C++ | 3 min ago | 2.26 KB
Untitled
C++ | 4 min ago | 2.06 KB
Untitled
C++ | 4 min ago | 2.26 KB
Untitled
C++ | 5 min ago | 1.98 KB
Untitled
C++ | 5 min ago | 2.21 KB
Untitled
C++ | 6 min ago | 1.59 KB
Untitled
C++ | 6 min ago | 1.27 KB
Incident table
TypeScript | 8 min ago | 3.61 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!