Shop OBEX P1 Docs P2 Docs Learn Events
Converting string to float — Parallax Forums

Converting string to float

John_BJohn_B Posts: 16
edited 2009-08-11 16:52 in Propeller 1
Hi
I am reading in a string that represents a float via the keyboard and wish to convert it to a float value. Is there any code available that does this or can anybody guide me through the process.
Cheers
John

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-08-11 15:04
    FloatString v1.2 in the Object Exchange has a string to floating point conversion routine that will do what you want.
  • John_BJohn_B Posts: 16
    edited 2009-08-11 16:52
    Thanks Mike,
    Just what I was after, but coundn't find.
    John
Sign In or Register to comment.