s-news
[Top] [All Lists]

displaying large numbers

To: "S-news (E-mail)" <s-news@wubios.wustl.edu>
Subject: displaying large numbers
From: "Fowler, Mark" <FowlerM@mar.dfo-mpo.gc.ca>
Date: Wed, 27 Nov 2002 15:35:18 -0400
I wish to display large numbers without scientific notation. I've tried
various combinations of print and format without success. As an example,

> v_473482475476472478
> v
[1] 4.7348e+017
> print(format(v,digits=36,scientific=F))
[1] "473482475476473000"
> print(format(v,digits=36,scientific=c(-24,24)))
[1] "473482475476473000"
> as.character(format(v,digits=18,scientific=F))
[1] "473482475476473000"

Anyone know how to make the original number display?

[S-Plus 6.1 on Windows 98]

<Prev in Thread] Current Thread [Next in Thread>