Archive: convert string to int


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-


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


thanks ... that helps a lot. guess i missed something in the documentation. :)


Well... In my C++ projects I use fcvt maybe some API will do that