Forum Discussion
xApt
Nimbostratus
Jun 28, 2017What is the best operator to use when comparing numbers?
Hi all, I was wondering whether the TCL language treats everything as a string and choosing the fastest (least load on the CPU, if it needs to do conversions) and most correct operator. for example: ...
Morten_Marstran
Nimbostratus
Jun 28, 2017Hi,
You are correct in regards to TCL having one data type (string).
This can be converted into an integer on the fly, with the operator '=='
If you don't need to do numerical operations, it is not recommended to do conversions.
Best Regards,
Morten
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