azimuttapp / azimutt

Explore, document and optimize any database
https://azimutt.app
MIT License
1.37k stars 89 forks source link

using float type for price in the hero image #249

Closed Mhdi-kr closed 1 year ago

Mhdi-kr commented 1 year ago

Hello, I noticed something wrong in the hero image and I wanted to tell you about it.

You've used float type for storing prices in the database which can get you in trouble because floats and doubles cannot accurately represent the base 10 multiples that we use for money.

IEEE 754 more info

loicknuchel commented 1 year ago

Hi @Mhdi-kr Thanks for reporting, I see what you mean about float/double but not sure where you saw them on Azimutt for price. Could you point me precisely where you saw it? Thanks

Mhdi-kr commented 1 year ago

Sure! https://azimutt.app/images/screenshots/azimutt-79bb1b71198a84a889aea7d55ec8cfa1.png?vsn=d

loicknuchel commented 1 year ago

Ah I see! It's not on Azimutt but on Gospeak database ^^ Indeed not best ^^