Hi,

How do I convert data to a decimal when using I2CWRITE e.g

I2CWRITE PortA.0, PortA.1, LCD, 0, [12, "Light: ", S1AmbientLight,13, "Range: ", S1Echo]

It displays perfect on the LCD except the two variables(S1AmbientLight & S1Echo) are jiberish.

Thanks for your help