I am not sure if I understood the help page. It says "fixed notation will be preferred unless it is more than ‘scipen’ digits wider". If I understood correctly it says, the corresponding number needs to be less wider than 'scipen' digit, to print it numerically. Let say:
 
> options(scipen = 5)
> 10^10
[1] 1e+10
> options(scipen = 6)
> 10^10
[1] 10000000000

I both cases (10^10) is wider than scipen digit. Still why I am getting different representations? I am missing something?
 
Thanks,
 
 


--- On Sat, 27/11/10, Peter Ehlers <ehlers@ucalgary.ca> wrote:


From: Peter Ehlers <ehlers@ucalgary.ca>
Subject: Re: [R] Priniting numerics
To: "Ron Michael" <ron_michael70@yahoo.com>
Cc: "r-help@r-project.org" <r-help@r-project.org>
Date: Saturday, 27 November, 2010, 5:43 PM


On 2010-11-27 02:15, Ron Michael wrote:
> Hi all, can somebody help me on my little problem? I want to print a number say "10^10" is numerical format not in scientific notation. I ttied following:
>
>> options(scipen = 1)
>> print(10^10, 10)
> [1] 1e+10
>
> I am not getting my desired output in simple numerical format. How can I get that?
>

You'll need a greater penalty; see ?options.

Peter Ehlers

> Thanks in advance.
>
>
>     [[alternative HTML version deleted]]
>




	[[alternative HTML version deleted]]

