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

2007-09-06 Thread Mark Wardle
See ?print

and try getOption('digits')

and try print(a, digits=10)

Best wishes,

Mark

P.S. Your number is internally correct, but the default print() will
round numbers for display. You can change this option if you need to.

On 06/09/07, Monica Pisica [EMAIL PROTECTED] wrote:

 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@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.


 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email
 __



-- 
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK

__
R-help@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.


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

2007-09-06 Thread Greg Snow
?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
[EMAIL PROTECTED]
(801) 408-8111
 
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Monica Pisica
 Sent: Thursday, September 06, 2007 1:24 PM
 To: r-help@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@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.


__
R-help@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.


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

2007-09-06 Thread Monica Pisica

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@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.