Hello people,
Through Serial port I can insert some data. My name, age, height and kg. I want to convert that Kilos into grams or pounds or ounces and I do not know how to do it.
I tried to make some "formula" like this
grams = weight * 1000;
But that doesn't working.
So, any help?
Thank you!
Post your code and explain what "not working" means. No output, wrong output?
Red the "how to use this forum-please read" stickies to see how to properly post code and some hints on how to get the most from the forum.
So what does it do? Can't tell much from one line of code but my guess is that "weight" is not a number or the variables are in some other way the wrong types. Please post the complete program and then we'll know.
Steve
Does it work if you enter 32 kg or less?