The meaning of 'f'

Hi,

Just wanted to know what the meaning of the last ' f ' was in this line of code ?

Thought it might mean float but why would that be needed when the line is creating a Float or does any fraction entered or a result possibly having a fraction always have to be denoted as a float ?

const float timer1on = (17 + 46/ 60.0f); hour / mins

Thought it might mean float

To distinguish from a double.

AWOL:
To distinguish from a double.

... which on the Arduino is identical to a float. :slight_smile:
The compiler is smart enough to know that 60.0 is a float but adding the 'f' does no harm.
The compiler assumes 60 is an int. Append either 'f' or '.0' to make it a float or cast it: '(float)60' or 'float(60)'.

johnwasser:
... which on the Arduino is identical to a float. :slight_smile:

sp. "which on some Arduinos is identical to a float. :)"