☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year agoFirst exposure to floating-point arithmeticpeertube.mesnumeriques.frexternal-linkmessage-square2linkfedilinkarrow-up10arrow-down10
arrow-up10arrow-down1external-linkFirst exposure to floating-point arithmeticpeertube.mesnumeriques.fr☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square2linkfedilink
minus-squaredata1701d (He/Him)@startrek.websitelinkfedilinkEnglisharrow-up0·1 year agoC:\home\dexcube\Development\piper\build> python3 Python 3.13.2 (main, Mar 13 2025, 14:29:07) [GCC 14.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from decimal import Decimal >>> Decimal('0.1') + Decimal('0.2') Decimal('0.3')
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up2·1 year ago> C:\ > on linux Absolutely illegal.
C:\home\dexcube\Development\piper\build> python3 Python 3.13.2 (main, Mar 13 2025, 14:29:07) [GCC 14.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from decimal import Decimal >>> Decimal('0.1') + Decimal('0.2') Decimal('0.3')>
C:\>
on linuxAbsolutely illegal.