Shop OBEX P1 Docs P2 Docs Learn Events
Problem with numbers.spin — Parallax Forums

Problem with numbers.spin

mynet43mynet43 Posts: 644
edited 2007-09-14 15:50 in Propeller 1
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


Comments

  • mynet43mynet43 Posts: 644
    edited 2007-09-14 15:50
    Oops, I just discovered my own problem[noparse]:([/noparse]

    I forgot to call num.init, I'm surprised it worked at all...
Sign In or Register to comment.