News for hackers. Stuff that matters.
Re:Copilot regurgitating Quake code, including sweary comments by TchoBeer on Friday July 02, 2021 @11:57AM (#27713159)
What if I'm calculating sales tax? Can't use an integer anymore.
Re:Copilot regurgitating Quake code, including sweary comments by kyllo on Friday July 02, 2021 @12:53PM (#27713943)
Yes, you can. There are algorithms for rounding up, rounding down, rounding to nearest, and banker's rounding, on the results of integer division. This is a solved problem.