integer - R's Format function returning an odd result -


why does

format(4444444444444444444,scientific=false) 

return "4444444444444444672"?

i thought might integer precision thing, number relatively small. thanks!

i'm running r version 3.0.0 on ubuntu linux.

if give r integer greater than:

> .machine$integer.max [1] 2147483647 

it converts double. r-faq has 7.31. questions related floating point accuracy occur commonly on so: controlling number of decimal digits in print output in r

(the size of vector indices increased last version of r (3.0.0) , seems possible max size integer may widened in future. don't quite understand how can keep limit on sizes of integers , access vector indices larger.)


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -