0
I need to format the number 1000 THOUSAND for 100,0 or 100.0 that is, with a decimal place in PHP.
I tried to number_format
but returns 1000.00 or 1,000.00.
0
I need to format the number 1000 THOUSAND for 100,0 or 100.0 that is, with a decimal place in PHP.
I tried to number_format
but returns 1000.00 or 1,000.00.
Browser other questions tagged php number-format
You are not signed in. Login or sign up in order to post.
Eduardo, PHP is returning correctly, since 1000 is equal to 1000,00 or 1,000,00. What you can do, for THIS CASE, is divide by 10 and apply the number_format function.
– Gabriel Carvalho
Solved, thank you very much, it was lack of thinking a little. Have a good afternoon!
– Eduardo Barros