Skip to content
Prev 218845 / 398498 Next

unexpected result from format(x, digits)

On 28/04/2010 6:48 PM, Steve Taylor wrote:
Then it wouldn't be behaving as documented:  "Numeric vectors are 
encoded with the minimum number of decimal places needed to display all 
the elements to at least the |digit| significant digits. However, if all 
the elements then have trailing zeroes, the number of decimal places is 
reduced until at least one element has a non-zero final digit; see also 
the argument documentation for |big.*|, |small.*| etc, above. "

Duncan Murdoch