𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟@programming.dev to Programmer Humor@programming.dev · 1 year agoFixedprogramming.devimagemessage-square8fedilinkarrow-up117arrow-down10
arrow-up117arrow-down1imageFixedprogramming.dev𝕊𝕚𝕤𝕪𝕡𝕙𝕖𝕒𝕟@programming.dev to Programmer Humor@programming.dev · 1 year agomessage-square8fedilink
minus-squareHotzilla@sopuli.xyzlinkfedilinkEnglisharrow-up0arrow-down1·1 year agoquite a horrible hack, most modern languages have decimal type that handles floating rounding. And if not, you should just use rounding functions to two digits with currency.
quite a horrible hack, most modern languages have decimal type that handles floating rounding. And if not, you should just use rounding functions to two digits with currency.