Well, in Louisinia my anemometer would be broken. It's limited to 180 km/h !

OK, i understand it now. My 2nd question was because i saw no difference between both lines, i think you forgot a space between " " in the line for kmh<10. Do i have it right ?

Thanks for your help, appreciated it.
Patrick.

Quote Originally Posted by Melanie
No tutorial - just program, play and learn from doing.

Assuming you'll never exceed 255 km/h wind speed (byte variable) and you don't live in Louisianna...

My example right-justified... so the maximum you can display is three characters (100-255 km/h).

If your spped is less than 100 km/h, then you prefix with one blank... this covers 10-99 km/h.

If your speed is less than 10km/h, then you need to prefix with two blanks (0-9 km/h).

Using this method, you get a stationary "km/h" label with the digits moving to the left. A lot neater than digits moving to the right with the "km/h" label flapping about behind them.