Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
mundo0349118yFincance has negative numbers too.. like for loses no? I think we need more context to judge your coworker
-
Are we talking " long overflow wrap around"- kind of numbers no one would actually plug in or reasonable use cases?
-
@mundo03 we sell a product where the minimum amount of units you can buy is 8500. Technically you can buy less but we still charge for 8500. Her tool would take 8500 minus the number of units purchased to see if we needed to add anything to the rate i.e. If they bought 7500 at $1 each it would do 8500 minus 7500 so you would have 1000 left over to multiply by the rate ($1) and add to the total. With me so far? Where it breaks is if they buy over 8500, say 9000. 8500 minus 9000 is negative 500 and when you multiply that by the rate and "add" it in it gives the customer a discount... this is a very simplified example but I hope it helps.
Related Rants
Coworker made a tool to automate part of our job and she sent it to me. After 5 seconds of using it I found a bug... she has been using it for weeks. Now I don't trust anything she has done around here. (It's a financial tool and the bug is changing certain numbers to negative so it subtracts instead of adds...)
undefined
bug