Skip to content

64 bit integers #33

@romainfrancois

Description

@romainfrancois

From Murray:

A vector of 64-bit integers in C++ code should be either returned as

  1. An integer vector (if all values are < INT_MAX in the C code) corresponding to R's integer type.

  2. A numeric vector (if all values are < 1L << 53 such that they can be stored precisely in a double without losing any digits of precision) corresponding to R's numeric type.

  3. A vector of strings (if at least 1 value > 1L << 53 such that returning a numeric would lose precision in the result. e.g. 64-bit fingerprints, userids, network addresses or other things can not be stored in a numeric accurately.

Sorry no patch, I work around this in my application code currently before calling Rcpp::wrap().

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions