[Rcpp-commits] r3367 - pkg/int64/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Nov 16 11:49:01 CET 2011


Author: romain
Date: 2011-11-16 11:49:01 +0100 (Wed, 16 Nov 2011)
New Revision: 3367

Modified:
   pkg/int64/man/int64-class.Rd
Log:
mention conversion to int64

Modified: pkg/int64/man/int64-class.Rd
===================================================================
--- pkg/int64/man/int64-class.Rd	2011-11-16 10:44:41 UTC (rev 3366)
+++ pkg/int64/man/int64-class.Rd	2011-11-16 10:49:01 UTC (rev 3367)
@@ -86,6 +86,12 @@
     x + x
     x - 3L
     
+    # arithmetic operations first convert both operands to 64 bit integer type
+    # so some precision will be lost
+    as.int64(1) + 1.5
+    # but it feels appropriate for dealing with large values
+    as.int64(43124567245667) + 1.5
+    
     # logical operations
     x < 3L
     x != c( 1L, 2L )



More information about the Rcpp-commits mailing list