Possible Duplicate:
Digit limitation from decimal point in C++
What is the syntax to set numbers after the decimal point, not before it? For example I have a value, "x.456" and I want to print only 1 number after the decimal point.
Possible Duplicate:
Digit limitation from decimal point in C++
What is the syntax to set numbers after the decimal point, not before it? For example I have a value, "x.456" and I want to print only 1 number after the decimal point.