Number to String
CumQuaT
Posts: 156
Hi all,
I was wondering if anyone knew of a way to convert a number (such as a byte or long value) into a string. Normally in another programming language like BASIC you would just use STR$(Value) and bam, job's done, but in Spin, I can't seem to get it to work...
I'm building an RFID storage system and I need to store the RFID codes I scan into a text file on a flashcard and no matter what I do I can't get it to save the numbers into the text file...
Any ideas?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?
I was wondering if anyone knew of a way to convert a number (such as a byte or long value) into a string. Normally in another programming language like BASIC you would just use STR$(Value) and bam, job's done, but in Spin, I can't seem to get it to work...
I'm building an RFID storage system and I need to store the RFID codes I scan into a text file on a flashcard and no matter what I do I can't get it to save the numbers into the text file...
Any ideas?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?
Comments
The simplest version, in pseudo code:
Added: or yeah, what Sylvie said. [noparse]:)[/noparse]
One of my preferred for simple tasks is simple_numbers
obex.parallax.com/objects/182/
Numbers is the bigger brother, but sometimes is overkill. Formatting is more powerful, but more complex.
obex.parallax.com/objects/23/
Massimo
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Who are you, and why are you reading my signature?