cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Number suffixes
Number suffixes
Aug 18, 2011 at 11:24am
Aug 18, 2011 at 11:24am UTC
AleaIactaEst
(98)
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 12:10pm UTC
Aug 18, 2011 at 11:14pm
Aug 18, 2011 at 11:14pm UTC
jsmith
(5804)
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.