Its not being stored as an integer. Its being stored as a double.
If it were stored as an integer you would not get the e:
as.character(10L)
[1] 10
as.character(as.integer(10))
[1] 10
On Sat, Aug 22, 2009 at 7:13 PM, Dajiang J. Liudajiang@gmail.com wrote:
Dear all,I want to convert a long integer to a string, and for example,
1
I used as.character(10) e.g, and it gives me back 1e+???. What I
want is a exact form, not exponential form. Any ideas how to do it? Thank
you very much.
Regards,
Dajiang
[[alternative HTML version
Try this:
sprintf(%d, 10)
On Sat, Aug 22, 2009 at 8:13 PM, Dajiang J. Liu dajiang@gmail.comwrote:
Dear all,I want to convert a long integer to a string, and for example,
1
I used as.character(10) e.g, and it gives me back 1e+???. What I
want is a exact form, not
On Aug 22, 2009, at 6:13 PM, Dajiang J. Liu wrote:
Dear all,I want to convert a long integer to a string, and for
example,
1
I used as.character(10) e.g, and it gives me back 1e+???.
What I
want is a exact form, not exponential form. Any ideas how to do it?
Thank
The
it's 'scipen' you want to look at.. b
On Aug 22, 2009, at 11:16 PM, David Winsemius wrote:
On Aug 22, 2009, at 6:13 PM, Dajiang J. Liu wrote:
Dear all,I want to convert a long integer to a string, and for
example,
1
I used as.character(10) e.g, and it gives me back 1e+???.
5 matches
Mail list logo