PDA

View Full Version : Conversion between bases



eduardomorais
11-25-2010, 12:32 PM
Hello everyone!

Could anyone give me an object in SPIN, which makes conversion to a binary value to hexadecimal or decimal?

kuroneko
11-25-2010, 12:43 PM
Would the Simple_Numbers object provided by the Propeller Tool library do what you want (also available from http://obex.parallax.com/objects/182/)?

JonnyMac
11-26-2010, 04:08 PM
Since base conversion is only required for text output you can use the routines in FullDuplexSerial. Remember, a number is just a number.