Toggle navigation
Categories
Discussions
HARMAN Pro
Home
AKG
AMX
BSS
Crown
dbx
JBL Professional
Lexicon
Soundcraft
Sign In
Home
›
AMX User Forum
›
AMX General Discussion
Displaying an integer
kmenshouse
Posts:
32
September 2007
in
AMX General Discussion
Is there a way to set the number of places for an integer, so you can send two digits to a display, with the first being zero?
Thanks,
Keith
0
Comments
Joe Hebert
Posts:
2,159
September 2007
Yes there is. Check out the FORMAT command. It would be something like:
FORMAT('%02d',nMyInteger)
0
Chip Moody
Posts:
727
September 2007
Heh. Before the FORMAT command, I used to do something like pad_num = RIGHT_STRING ("'00',ITOA(my_integer)",3) to - for example - get three digits at all times, even if the first one or two were a leading zero.
- Chip
0
Sign In
or
Register
to comment.
Comments
FORMAT('%02d',nMyInteger)
- Chip