Page 1 of 1
Print Formatted Number
Posted: Mon Jan 18, 2021 12:59 pm
by medelec35
Could PrintFormattedNumber be added to all displays and not just LCD?
Then gLCD can display Long and Ulong numbers, rather than restricting to signed Ints e.t.c.
Re: Print Formatted Number
Posted: Wed Jan 20, 2021 10:00 am
by BenR
Hi Martin,
Good suggestion thanks. I'll have a look shouldn't be too tricky to do
While I'm at it what about a print float function with number of floating points param?
Re: Print Formatted Number
Posted: Wed Jan 20, 2021 10:04 am
by p.erasmus
BenR wrote: ↑Wed Jan 20, 2021 10:00 am
While I'm at it what about a print float function with number of floating points param?
Hi Ben
This is always useful never mind the application LCD,gLCD even in Serial coms
Re: Print Formatted Number
Posted: Wed Jan 20, 2021 9:00 pm
by medelec35
Hi Ben,
Thank you.
BenR wrote: ↑Wed Jan 20, 2021 10:00 am
While I'm at it what about a print float function with number of floating points param?
That is a great idea!
p.erasmus wrote: ↑Wed Jan 20, 2021 10:04 am
This is always useful never mind the application LCD,gLCD even in Serial coms
I fully agree with that.
Re: Print Formatted Number
Posted: Thu Jan 21, 2021 9:34 am
by Steve-Matrix
I realise it's an extra step, but you can always convert the float to a string in a calculation and use the string if the component can't handle the float.
Re: Print Formatted Number
Posted: Thu Jan 21, 2021 10:21 am
by p.erasmus
Thats true too Steve