DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
fix to 2 decimal places php
return number_format((float)$number, 2, '.', '');
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#fix
#decimal
#places
#php
ADD COMMENT
Topic
COMMENT
Name
3+2 =
Submit