bmildlyinfuriating·Mildly Infuriatingbybachatero 51% + 50% = ?View original on lemmy.world-7Comments4Reply
Eager Eagle lemmy.world1Hide 1 replyrounding half up round(49.5) + round(50.5) 50 + 51 as opposed to banker's rounding / rounding half to even: round(49.5) + round(50.5) 50 + 50 32Reply
Scrubbles replypoptalk.scrubbles.techYeah fintech team rounded correctly and ui team rounded to the nearest int. No big deal, it's not actual money here.12Reply
DDudewitbow lemmy.zipthere are different methods of rounding, and this one is likely caused by the always round up method when at a .5 value. there are methods that evenly distribute rounding, or at least attempt to.5Reply
4 replies
rounding half up
as opposed to banker's rounding / rounding half to even:
Yeah fintech team rounded correctly and ui team rounded to the nearest int. No big deal, it's not actual money here.
49.5+50.5 rounded?
there are different methods of rounding, and this one is likely caused by the always round up method when at a .5 value. there are methods that evenly distribute rounding, or at least attempt to.