0

Hey, just wondering - I've seen numbers like 1.0f in examples and in books, but what does the 'f' mean? Does it just mean that the number is a floating point number? And does including/excluding it change anything?

2
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by ShawnCplus
0

In simple terms, yes, it is a float. If you don't include the f I believe, technically, it is considered a double.

0

In simple terms, yes, it is a float. If you don't include the f I believe, technically, it is considered a double.

Even if the variable's datatype is a float? like if i were to do float fNumber = 5; , it would think that 5 is a double?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.