Skip to content
⌘ NSIS Forum Archive

convert string to int

4 posts

icebrrrg#

convert string to int

is there any quick and dirty way to convert a string to an int? or does IntCmp automatically do that?'

lots of string functions out there, and i believe the Math plug-in will do that, but i don't want to pull that in if i don't need to. thanks!

-m-
kichik#
There is no integer data type in NSIS, just strings. Every instrcution that needs an integer does the conversion internally, including IntCmp.