Significant Digits

This is a discussion on Significant Digits within the C++ Programming forums, part of the General Programming Boards category; Hi,
Is there any way I can display a value to a specified number of significant digits?
Thanks...