|
Round a Decimal withOUT the leading zero
Does anyone know how I could use printf to display a decimal number without the leading zero?
Something like,
{
...
x = .45;
printf ("%lf", x);
...
}
and have that display '.45' instead of '0.45'?
Last edited by ericthered13; 10-08-2005 at 01:53 PM.
|