Support the ongoing development of Laravel.io →
PhillippOhlandt

PhillippOhlandt

Joined 3 May 2015

Statistics

Threads 1
Replies 10
Solutions 0
Articles 0

Eloquent float values be rounded

Hey, I have an existing database with float(10,2) fields in some tables. When I return Model::first(...

0 Likes
24 Replies
replied 10 years ago

Eloquent float values be rounded

jimgwhit: Every eloquent function gives me a rounded float value. Model::find(1), Model::first, Mode...

0 Likes
replied 10 years ago

Eloquent float values be rounded

jimgwhit: Retrieving all data in a custom query is stupid because all eloquent magic is gone. Retrie...

0 Likes
replied 10 years ago

Eloquent float values be rounded

ricardofls: Can't edit the production database. jimgwhit: So please tell me how you format a rounded...

0 Likes
replied 10 years ago

Eloquent float values be rounded

I don't want to store data, I want to read data. The value in the database is 2.95 and eloquent give...

0 Likes
replied 10 years ago

Eloquent float values be rounded

My problem is that eloquent give me the rounded value and not the original value. I want the origina...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.