[R] larger decimal numbers get rounded ....

Greg Snow Greg.Snow at intermountainmail.org
Thu Sep 6 22:27:51 CEST 2007


?options  
Look at the entry on 'digits'.  Does that fix the problem?  If not, give
a little more detail on what you are doing.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
 
 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Monica Pisica
> Sent: Thursday, September 06, 2007 1:24 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] larger decimal numbers get rounded ....
> Importance: High
> 
> 
> Hi,
>  
> I am sure there is a reason but ...... why larger decimal 
> numbers get rounded to the nearest integer?
>  
> Example:
>  
> a <- 3308000.5
> a
> [1] 3308001
>  
> I would like my numbers to be decimals .... since they do 
> represent coordinates and i don't want them rounded .... how 
> can i keep them as they are?
>  
> Thanks,
>  
> Monica
> _________________________________________________________________
> 
> 
> e=wlmailtagline
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list