Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Fload value on: January 07, 2013, 06:27:06 pm
Quote
is there a way to turn off the rounding?
Write your own function. Not rounding is not a good idea. Why do you want to do that?

I'm simulating an aviation radio. 118.225 is a communication frequency. The 3rd decimal place is used for tuning calculation but is not displayed to the pilot. So on my LCD I need it to say COM1 = 118.22 , but when I turn my rotary encoder I'm adding .025 to the frequency. So I need to keep the 3 decimal precision but only display the first 2.
2  Using Arduino / Programming Questions / Re: Fload value on: January 07, 2013, 06:12:56 pm

Code:
    lcd.print(AFC,4);

That works great! is there a way to turn off the rounding?
For example I have a float 118.225, I only want to display the first 2 decimal places but lcd.print(COM1A); returns 118.23.
3  General Category / General Discussion / Re: Newbie-Arduino on: January 05, 2013, 07:53:35 pm
I started with an Uno, then moved onto a mega. They are both awesome!
4  General Category / General Discussion / Re: What components to get apart from Arduino ? on: January 05, 2013, 07:51:35 pm
Rotary encoders are fun to. And a serial LCD display can add a lot of utility to your creations!
Pages: [1]