Torann / laravel-currency

This provides Laravel with currency functions such as currency formatting and conversion using up-to-date exchange rates.
http://lyften.com/projects/laravel-currency
BSD 2-Clause "Simplified" License
392 stars 137 forks source link

"php artisan currency:update" command rise an Exception #21

Closed trubbio83 closed 8 years ago

trubbio83 commented 9 years ago

The problem is on the the currecy table field 'value'. At the moment is a DOUBLE(15,8) but rise an error on the value 1.00 that is the default currency value, that because try to store a value that contain only 2 decimal. I resolved this changing the field into DECIMAL(17,2) that actually is more precise than DOUBLE. Of course in this way the value is rounded! what you think?

Torann commented 8 years ago

Strange, I have yet to run into this.