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
The cost of the order is being rounded off, ignoring when the pineapple and olives options are selected because they cost less than a dollar.
The error has been isolated to commits f712325, 6710256, & 884734e, though it was discovered in commit 0fa7dc3.
It arose when I changed the datatype of the monetary variables from Decimal to Integer.
Example: The topping pineapple does not affect the pizza cost as it is only 15c and is rounded down to zero. Similar errors occur with all toppings whose price is not a whole dollar.
The text was updated successfully, but these errors were encountered:
The cost of the order is being rounded off, ignoring when the
pineapple
andolives
options are selected because they cost less than a dollar.The error has been isolated to commits f712325, 6710256, & 884734e, though it was discovered in commit 0fa7dc3.
It arose when I changed the datatype of the monetary variables from
Decimal
toInteger
.Example: The topping pineapple does not affect the pizza cost as it is only 15c and is rounded down to zero. Similar errors occur with all toppings whose price is not a whole dollar.
![image](https://user-images.githubusercontent.com/19619206/140479609-f5518a7d-372d-4ba0-86c9-67c648802f8a.png)
![image](https://user-images.githubusercontent.com/19619206/140479707-dc0ccbdc-c2c6-47b6-a486-f94335726678.png)
The text was updated successfully, but these errors were encountered: