You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.
What's an "invalid value"? Floating point numbers can't accurately store all numbers, for example 0.1.
The only solution imo is to throw an exception if a float is passed
Item class, setPrice, if $price is a float, we probably should not allow a float with an invalid value.
Example:
$item.setPrice(1.111111111111) will set this value as a float on item, which cannot be used, ultimately, to create an invoice.
The text was updated successfully, but these errors were encountered: