constant lenght of decimal
avionikeren
Posts: 64
I`m new to propeller, so i`m sorry for a noob question, but I have searched through the forum and can`t find the answer, though I`m sure it`s there...
I`m sending a string using full duplex serial object, and it works fine, but I want the string to be constant lenght. In bs2 i just put DEC3 for 3 digits, but how to do it in spin?
example from my code:
serial.dec(compass.heading)
I`m sending a string using full duplex serial object, and it works fine, but I want the string to be constant lenght. In bs2 i just put DEC3 for 3 digits, but how to do it in spin?
example from my code:
serial.dec(compass.heading)
Comments
-Phil
http://obex.parallax.com/objects/182/
This one is overkill and sometimes not as immediate
http://obex.parallax.com/objects/23/
Massimo
-Phil