KHTangent@lemmy.world to Programmer HumorEnglish · 1 year agoSwapping integers in Pythonlemmy.worldimagemessage-square16fedilinkarrow-up1168arrow-down1-1cross-posted to: bumba@boomer.casinopython@programming.dev
arrow-up1169arrow-down1imageSwapping integers in Pythonlemmy.worldKHTangent@lemmy.world to Programmer HumorEnglish · 1 year agomessage-square16fedilinkcross-posted to: bumba@boomer.casinopython@programming.dev
minus-squaresocsalinkfedilinkEnglisharrow-up2·1 year agoAlso don’t forget that int() only truncates the decimal and doesn’t round. This has fucked me over several times.
Also don’t forget that int() only truncates the decimal and doesn’t round. This has fucked me over several times.