Level 122
use the number_format() function ?
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am trying to return a price using Laravel API. But I getting below output from API.
{
"message": "Data inserted successfully.",
"quotation": 31.900000000000006,
"id": 3
}
How can I fix the quotation ?
use the number_format() function ?
Please or to participate in this conversation.