Forum Discussion
Mr_Paritchaya_7
Nimbostratus
17 years agoHow to convert string variable to number?
I want to capture mobile number from http payload and doing mod it by 4 for select pool.
Now I'm confusing about how to convert string variable to integer or number variable for modulation.
...
Mr_Paritchaya_7
Nimbostratus
17 years agoHi, Aaron,
From example below.
I try to mod string type($subid) by 4 but I'm not sure that what type will return?
set subid [findstr [HTTP::payload] "subscriberNumber" 0 ""]
set modid expr {$subid % 4}
Thank you,
Paritchaya
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
