Displaying 1 result from an estimated 1 matches for "a7412389".
2006 Nov 17
2
Numbers with correct significant digits
This, for example:
v <- c(9.6996, 99.99)
formatC(v, digits=3, format="g")
shows:
" 9.7" " 100"
This is scientifically incorrect for the first number in the sense that I
like to show all 3 significant digits, including trailing zero's.
Is there a way that the first number would show as " 9.70"?
By the way, can't use format() since it applies