Problem with numbers.spin
mynet43
Posts: 644
I had never used numbers.spin before, so I decided to try it.
If I display:
num.ToStr(3210, Num#DEC) it displays "3210", just like it should.
However, if I display:
num.ToStr(3210, Num#DDEC), it only displays "3", which is strange[noparse]:([/noparse]
With this format parameter, it should display "3,210", with the comma embedded in the string.
Is there a bug in numbers.spin or am I doing something wrong?
Thanks for your help.
Jim
If I display:
num.ToStr(3210, Num#DEC) it displays "3210", just like it should.
However, if I display:
num.ToStr(3210, Num#DDEC), it only displays "3", which is strange[noparse]:([/noparse]
With this format parameter, it should display "3,210", with the comma embedded in the string.
Is there a bug in numbers.spin or am I doing something wrong?
Thanks for your help.
Jim
Comments
I forgot to call num.init, I'm surprised it worked at all...