AndreasSchwarzinger608619

:define or not

Discussion created by AndreasSchwarzinger608619 on Dec 28, 2017
Latest reply on Dec 29, 2017 by AndreasSchwarzinger608619
hey
please look at my little example

:set &st#="000000001"
:define &rc1#, unsigned
:set &rc1#=convert(unsigned,&st#)
:set &rc1#=format(&st#,"0")
:print &rc1#
:set &rc2#=convert(unsigned,&st#)
:set &rc2#=format(&st#,"0")
:print &rc2#

this is the output

2017-12-28 11:09:25 - U00020408 0000000000000001
2017-12-28 11:09:25 - U00020408 1

when defining a variable as unsigned, the output looks like a string
whitout defining, the output looks like a unsigned value.
very surprising for me

thanks
andreas

p.s.  i yust like to convert a status code to a number

Outcomes