Image:
Author: ags131 Group: Default Filesize: 5.48 kB Date added: 2011-01-31 Rating: 5 Downloads: 518 Views: 824 Comments: 0 Ratings: 1 Times favored: 0 Made with: Algodoo before v1.8.5 Tags:
|
This is some functions to allow conversions between Decimal (integers), Hexadecimal, And binary.
Scene.my.Hex2Dec(hex)
Scene.my.Dec2Bin(dec)
Scene.my.Dec2H-
ex(dec)
Scene.my.Bin2Hex(bin)
Scene.my.Hex2Bin(hex)
Scene.my-
.Bin2Dec(hex)
Decimal format: ["DEC",number] ex: ["DEC",21] (This is used mainly so the fucntions dont try converting the wrong type)
Hex format: ["HEX",count,[data]] ex: ["HEX", 2, ["A",1]]
Binary format: ["BIN",bits,[Data]] ex: ["BIN",4,[1,0,1,0]]
Comment and rate please! |