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

Floating Point documentation

simonlsimonl Posts: 866
edited 2006-09-25 14:40 in Propeller 1
Have just found the 'Float32' / 'Float32A' / 'Float32Full' objects, and whilst the documentation is enlightening, I'm still mystified as to what some of the functions are meant to do! For example, what do 'FFloat', 'FTrunc', and 'FCmp' do?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheers,

Simon

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2006-09-25 14:10
    FFloat converts an integer into a floating point value. FTrunc converts the other way truncating the fractional part. FCmp compares two floating point values.
  • simonlsimonl Posts: 866
    edited 2006-09-25 14:40
    Hi Mike,

    Thanks for the info' -- makes sense now, except for FCmp; whilst I can see that it compares two FP values, what is it's result? Is it True/False? (I'd just try it, but I'm at work at the moment :-( )

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheers,

    Simon
Sign In or Register to comment.