tags:

views:

100

answers:

1

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.

A: 

http://stackoverflow.com/questions/798046/digit-limitation-from-decimal-point-in-c

hfs
This should have been a comment. (Who up-voted this?)
sbi