sdkfz250
10-04-2009, 12:32 PM
Hello,
maybe this is a stupid question.
If I want to have the last digit of a number (e.g. 123 i want to extract 3) if i work with the following code it does not work:
temp$=str(points$); //points$ is a number
G_SHOWMESSAGE(temp$[1,0]);
Why does this not work? With str() I converted the number in a string. temp[1,0] should allocate the last digit in a string beginning from the right side.
Thanks for your help in advance , Michael
maybe this is a stupid question.
If I want to have the last digit of a number (e.g. 123 i want to extract 3) if i work with the following code it does not work:
temp$=str(points$); //points$ is a number
G_SHOWMESSAGE(temp$[1,0]);
Why does this not work? With str() I converted the number in a string. temp[1,0] should allocate the last digit in a string beginning from the right side.
Thanks for your help in advance , Michael