How to cut decimal number like this using php ?
1.20
cut decimal number to 1.2
1.00
cut decimal number to 1
1.02
do not cut decimal number
I tried using round
, ceil
, floor
but not work
How can i do that ?
How to cut decimal number like this using php ?
1.20
cut decimal number to 1.2
1.00
cut decimal number to 1
1.02
do not cut decimal number
I tried using round
, ceil
, floor
but not work
How can i do that ?
Copyright © 2021 Jogjafile Inc.
You can use
floatval
asFiddle