Cannot control iostream output to using decimal

I am doing the following:

cout << "max: " << dec << numeric_limits<long long>::max << endl;

and it still prints max in hexadecimal (apparently ignoring the dec iomanip). The correct includes are included, so I don't see how to control this...


Thanks
Juan
Hi,

Parentheses on the function call max() ?

std:: ?

Regards :+)
Yes!!! What a dumb mistake I made!!

Very good insight! Thanks so much!!
Topic archived. No new replies allowed.