Shop OBEX P1 Docs P2 Docs Learn Events
Floating Point Compare — Parallax Forums

Floating Point Compare

crgwbrcrgwbr Posts: 614
edited 2008-04-15 19:26 in Propeller 1
I just noticed on a project, that the propeller rounds a floating point number before comparing it to another number. For example, 0.055 would be equal to 0. This makes since, I just haven't thought about it before. However, I can't seem to figure out a way around it. Is there anyway to get SPIN to compare in floating point?

Regards,
Craig

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My system: 1.6 GHz AMD Turion64 X2, 4GB DDR2, 256MB ATI Radeon Graphics card, 15.4" Widescreen HD Screen

I have a duel boot of Ubuntu Linux and Windows Vista. Vista, because it came with the PC, Ubuntu because I like software that works.

"Failure is not an option -- it comes bundled with Windows."

Use The Best...
Linux for Servers
Mac for Graphics
Palm for Mobility
Windows for Solitaire

Comments

  • Chuck RiceChuck Rice Posts: 210
    edited 2008-04-15 18:56
    .

    I just ran into this the other day. See thisthread

    .
  • crgwbrcrgwbr Posts: 614
    edited 2008-04-15 19:26
    thanks, some how i guess i missed your thread.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My system: 1.6 GHz AMD Turion64 X2, 4GB DDR2, 256MB ATI Radeon Graphics card, 15.4" Widescreen HD Screen

    I have a duel boot of Ubuntu Linux and Windows Vista. Vista, because it came with the PC, Ubuntu because I like software that works.

    "Failure is not an option -- it comes bundled with Windows."

    Use The Best...
    Linux for Servers
    Mac for Graphics
    Palm for Mobility
    Windows for Solitaire
Sign In or Register to comment.