Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Display Double type on LCD not in scientific format

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
JC

Bascom Member



Joined: 15 Dec 2007
Posts: 586
Location: Cleveland, OH

usa.gif
PostPosted: Thu Jun 06, 2019 7:46 pm    Post subject: Display Double type on LCD not in scientific format Reply with quote

I am using V 2.0.8.1

I have a Double type variable that I want to display on a 2x20 Character LCD.

LCD dVar displays the variable in Scientific Format.

I want to display the variable in Normal format.

I see that there is a Config Single = Normal; but there does not appear to be a similar command for the Double type.

I see that one can Format a Single type variable using Fusing, but that also appears to not support the Double type.

Perhaps there is a built-in parameter or command to convert a Double type variable to a String type variable in Normal, (non-Scientific) format?

Thank you,

Jay

(BASCOM-AVR version : 2.0.8.1 , Latest : 2.0.8.1 )
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Thu Jun 06, 2019 7:58 pm    Post subject: Reply with quote

no there is not such an option.
_________________
Mark
Back to top
View user's profile Visit poster's website
JC

Bascom Member



Joined: 15 Dec 2007
Posts: 586
Location: Cleveland, OH

usa.gif
PostPosted: Thu Jun 06, 2019 9:51 pm    Post subject: Reply with quote

Hi Mark,

Thank you for your super fast reply!

Not a problem, I was just looking for the "easy" solution.
Guess I'll have to write my own...

Thank you

Jay
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum