Skip to content

int precision #8

Open
Open
@stxlvt

Description

@stxlvt

In 05-Built-in-Scalar-Types.ipynb it says:

C integers are fixed-precision, and usually overflow at some value (often near $2^{31}$ or $2^{63}$, depending on your system). Python integers are variable-precision, so you can do computations that would overflow in other languages:

I don't think it's correct to use the term "precision" to describe integers. They are as precise as they can be in both C and python. A better way to phrase it would be something like this:

C integers are limited to a fixed range, and usually overflow at some value (often near $2^{31}$ or $2^{63}$, depending on your system). Python integers are not limited to any fixed range, but are only limited by the available memory, so you can do computations that would overflow in other languages:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions