This is from the manual:DEC
DEC{#max} expression{\#min}
#max: optional maximum number of digits to send
#min: optional minimum number of digits to send
The DEC modifi er when used in an output command will convert a stored values to ASCII characters.
The example will format the value of temp so it prints out the number in a terminal window. The output
would display 1234.
temp var word
temp = 1234
serout s_out, i9600, [DEC temp] ;prints “1234”My problem:I am trying to relearn PBASIC again for my project (yep...that is left over from last winter) and of course have forgot just about how to do everything with PBASIC

I am trying to limit the number of digits displayed; I assumed that the #max expression would in theory limit the digits being displayed beginning with the left.
So I thought something like serout s_out, i9600, [DEC\2 temp] would print 34 but no deal. No matter what combination of "syntax" I use nothing seems to work. Can someone provide a simple code example or am I off target of how the #max expression "works"
Thanks-Brian