Shop OBEX P1 Docs P2 Docs Learn Events
Convert short array to flotting point — Parallax Forums

Convert short array to flotting point

JohnnyfumiJohnnyfumi Posts: 14
edited 2008-09-08 20:50 in Propeller 1
Hy,
i have to convert a string value in a floating point rappresentation. i read a string value (e.g 3.45) from an SD and i have to convert it in a floating point value, how can i do? In floathMath object there's a method that convert floating point value in a string, but·i need the opposite conversion (string to floating point).
Someone can help me?

thank·you so much for your patience
·

Comments

  • AribaAriba Posts: 2,687
    edited 2008-09-08 20:49
  • AleAle Posts: 2,363
    edited 2008-09-08 20:50
    I really thought something like that was available in the object exchange... there is nothing :-(. Maybe I missed it somehow ?

    If the numbers are in a limited subset... you can make a small routine to parse the numbers, it is not _that_ difficult. I'm currently implementing some double precision fp, I may do string->to fp... but later this week.
Sign In or Register to comment.