Editing Template:Ps2configrev
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 69: | Line 69: | ||
== hex2dec conversion way around 16 bits == | == hex2dec conversion way around 16 bits == | ||
This trick would allow to pass the value in hex format to this template | This trick would allow to pass the value in hex format to this template | ||
*Formula: #expr: | *Formula: #expr: W*16^3 + X*16^2 + Y*16^1 + Z*16^0 | ||
*Example 0x5555 = | *Example 0x5555 = <nowiki>{{#expr: 5*16^3 + 5*16^2 + 5*16^1 + 5*16^0}}</nowiki> = {{#expr: 5*16^3 + 5*16^2 + 5*16^1 + 5*16^0}} | ||
** 5*16^3 + 5*16^2 + 5*16^1 + 5*16^0 | ** 5*16^3 + 5*16^2 + 5*16^1 + 5*16^0 | ||
** 5*4096 + 5*256 + 5*16 + 5*1 | ** 5*4096 + 5*256 + 5*16 + 5*1 |