|
fattony Apprentice
Joined: 27 Dec 2001 Posts: 105 Location: USA
|
Posted: Wed May 21, 2003 10:09 pm
First digit of a number |
Is there an easy way to check what the first digit of a number is, and return only that digit?
Ex- 3289 would return 3
Any ideas?
Fat Tony |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu May 22, 2003 12:27 am |
Three methods:
%char(%ascii(@number))
%copy(@number,1,1)
%left(@number,1) |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|