From: Dave Thomas Date: 2001-07-31T00:09:28+09:00 Subject: [ruby-talk:18809] Re: Printing significant digits past decimal point Jim Freeze writes: > How does one print a maximum number of significant digits > past a decimal point? I thought sprintf("%.ng", val) would > do it. For %g, the precision gives the number of significant digits, not the decimal places. Dave