Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php float 2 decimais
Alex Vasilev
Programming language:
PHP
2021-07-01 07:21:41
0
Q:
php float 2 decimais
S.H.W
Code:
PHP
2021-07-06 15:44:26
$foo = "105"; echo number_format((float)$foo, 2, '.', '');
3
Tags
php
Related
how to get only decimal value in php
fix to 2 decimal places php
add two numbers in php
prepend 0 to number php
php round 2 decimals
is number divisible by 3 php
string to float php
php number multiple of
php calculate age as float
number format to float php
2 decimal round using php
php round decimal
round to 2 decimal places php
php float value
php random integer
php if less than number
php 2 decimal places without rounding
convert a value to a float in php
php float to int
New to Communities?
Join the community