[R] number precision

pieterprovoost at gmail.com pieterprovoost at gmail.com
Sat Aug 18 22:56:25 CEST 2007


Hi,

I'm trying to find a way to determine how many digits a number has. I tried using nchar(paste(number)), but unfortunately paste will reduce 8.00 to "8".

Any thoughts?
Pieter

--
This message was sent on behalf of pieterprovoost at gmail.com at openSubscriber.com
http://www.opensubscriber.com/messages/r-help@stat.math.ethz.ch/topic.html



More information about the R-help mailing list