Skip to content

Add support of reading hexidecimal numbers #174

@marcpaterno

Description

@marcpaterno

The function as.integer in base R will convert the hexidecimal representation of a number, e.g "0xa", into a 32-bit integer (in this case, 10). It would be good for as.integer64.character to do the same for 64-bit values.

The current implementation results in an <NA> value. An approximate work-around can be had by converting to a floating-point value, but this looses precision for large values because double contains only 53 bits of mantissa, which a signed 64-bit integer contains the equivalent of 63 bits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions