Forum Discussion
Nathan_Pearce_4
May 21, 2010Historic F5 Account
Math problem (possible human error)
when RULE_INIT {
log local0. "Maths Test: 57 + 22: [expr {57 +22}]. 57 + 022: [expr {57 + 022}]"
}
Returns:
: Maths Test: 57 + 22: 79. 57 + 022: 75
Can anyone explain why this might be?
Teste...
Nathan_Pearce_4
May 21, 2010Historic F5 Account
Fantastic. Thanks Joe. The 022 I amusing is not a number I have control over (three digit value extracted from payload) so I was thinking about performing a trimleft on any zero's but your solution is much more elegant.
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