I wrote a programming tutorial about storing prices efficiently in Laravel Eloquent on Mar 23, 2024. The idea is the same for storing float or double values as an integers in the database. You can read the post.
The idea is to store the price which data type is double or float (like this 70.50 for example) .. store it as integer data type like this 7050 but when getting it to be shown to the end-user just divide it by a hundred to get back to its original accurate decimal value.
If you want to get new posts, check out the new up-to-date detailed tech blog.