Values UInt8: 0,1,2,…,255 FruitEnum: ,,, • How to encode/decode values 0x4B: 75 in UInt8 or 'K' in ASCII When we talk about types, we have two aspects to concern:
m += 0.01 } m // 9865.22363 DON’T: Use floating point type to store money! var money: Decimal = 0 for _ in 0..<1000000 { money += Decimal(1) / Decimal(100) } money // 10000.000000 DO: Use Decimal type to store money
load new receiver bcl 20,31,1f ; 31 is cr7[so] 1:mflr r11 addis r11,r11,ha16(__objc_nilReceiver-1b) lwz r11,lo16(__objc_nilReceiver-1b)(r11) mtlr r0 cmplwi r11,0 ; return nil if no new receiver beqlr mrr3,r11 ; send to new receiver b LMsgSendReceiverOk