Forum Discussion
Magnum_IP
Nimbostratus
Feb 07, 2013Hex to Dec in an iRule
Can anybody help?
I need to convert a a hex number to decimal in an irule. The hex number can be in one of 2 formats eg.
0x01 0xf4
01f4
I would like to convert this to its dec...
Jessed12345
Employee
Feb 07, 2013iRules are TCL at heart, so usually an operation that that is not met with the iRule functionality described on DevCentral can still be met using native TCL tools. In this case I think this is probably what you are looking for: http://wiki.tcl.tk/3242. The examples on that page may not be the most efficient, but it looks like they'll do what you are asking about.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects