Print Formatted Number

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
medelec35
Valued Contributor
Posts: 2377
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 755 times
Been thanked: 817 times

Print Formatted Number

Post 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.
Martin

BenR
Matrix Staff
Posts: 2273
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 630 times
Been thanked: 836 times

Re: Print Formatted Number

Post by BenR »

Hi Martin,

Good suggestion thanks. I'll have a look shouldn't be too tricky to do :D

While I'm at it what about a print float function with number of floating points param?

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Print Formatted Number

Post 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 :D
Regards Peter - QME Electronics

medelec35
Valued Contributor
Posts: 2377
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 755 times
Been thanked: 817 times

Re: Print Formatted Number

Post 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 :D
I fully agree with that.
Martin

Steve-Matrix
Matrix Staff
Posts: 2007
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 300 times
Been thanked: 465 times

Re: Print Formatted Number

Post 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.

User avatar
p.erasmus
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Print Formatted Number

Post by p.erasmus »

:D
Thats true too Steve :D
Regards Peter - QME Electronics

Post Reply