Number suffixes

Aug 18, 2011 at 11:24am
What are the possible suffixes for numbers in c++? I know there is 'f' to indicate that a number is a float, but is there also one for double or other data types?

Example: 1.0f

Solved...http://www.cplusplus.com/doc/tutorial/constants/
Last edited on Aug 18, 2011 at 12:10pm
Aug 18, 2011 at 11:14pm
1.0 => double
1.0f => float
1 => int
1U => unsigned int
1L => long
1UL => unsigned long
1ULL => unsigned long long
1LL -> long long
Topic archived. No new replies allowed.