Trev13@programming.dev to Programming@programming.dev · 2 months agoBig Decimals: Stop Using Floats or Cents for Moneymedium.comexternal-linkmessage-square30linkfedilinkarrow-up176
arrow-up176external-linkBig Decimals: Stop Using Floats or Cents for Moneymedium.comTrev13@programming.dev to Programming@programming.dev · 2 months agomessage-square30linkfedilink
minus-squarerandy@lemmy.calinkfedilinkarrow-up11·edit-22 months agoI got hung up on this line: This requires deterministic math with explicit rounding modes and precision, not the platform-dependent behavior you get with floats. Aren’t floats mostly standardized these days? The article even mentions that standard. Has anyone here seen platform-dependent float behaviour? Not that this affects the article’s main point, which is perfectly reasonable.
I got hung up on this line:
Aren’t floats mostly standardized these days? The article even mentions that standard. Has anyone here seen platform-dependent float behaviour?
Not that this affects the article’s main point, which is perfectly reasonable.