Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Convert a string numeric to an integer

Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
12-15-2008 00:35
If I have a string "43" how do I convert it to an integer = 43?
Nexii Malthus
[Cubitar]Mothership
Join date: 24 Apr 2006
Posts: 400
12-15-2008 01:08
CODE

integer NewInteger = (integer)OldString;
_____________________

Geometric Library, for all your 3D maths needs.
https://wiki.secondlife.com/wiki/Geometric

Creator of the Vertical Life Client
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
12-15-2008 02:04
hmmm OK thanks - thought I tried that, but will try again - thanks