r - Are the as.character() and paste() limited by the size of the numeric vales they are given? -
i'm running problems r function as.character()
, paste()
: not give they're beingness fed...
as.character(1415584236544311111) ## [1] "1415584236544311040" paste(1415584236544311111) ## [1] "1415584236544311040"
what problem or workaround paste number string?
updatei found using bit64 library allowed me retain digits needed function as.integer64()
.
remember numbers stored in fixed number of bytes based upon hardware running on. can show big integer treated normal arithmetic operations? if not, you're trying store number big store in r install's integer # of bytes. number see fit.
you seek storing number double technically less precise can store larger numbers in scientific notation.
edit
consider answers in long/bigint/decimal equivalent datatype in r list solutions including arbitrary precision packages.
r
No comments:
Post a Comment