[R] Division ?
Gavin Simpson
gavin.simpson at ucl.ac.uk
Sun May 3 11:11:47 CEST 2009
On Sat, 2009-05-02 at 10:34 -0700, bogdanno wrote:
> It seems division with numbers bigger than 10 000 000 doesn't work
> 20000000/21
> [1] 952381
> > 55555555/23
> [1] 2415459
>
> Thank you
You are confusing the 'printed' representation of the resulting object
with the object itself:
> print(20000000/21, digits = 20)
[1] 952380.9523809524
G
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Dr. Gavin Simpson [t] +44 (0)20 7679 0522
ECRC, UCL Geography, [f] +44 (0)20 7679 0565
Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/
UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the R-help
mailing list