Skip to content

unsigned long: value vs calculation #1893

Closed
@Tnuz

Description

@Tnuz

I'm not sure if this is a bug, or I'm doing something wrong, but is sure is weird.
I'm using Arduino 1.0.5-r2.

const unsigned long var1 = 32000; // the value of var1 = 32000 const unsigned long var2 = 32_1000; // the value of var2 = 32000 const unsigned long var3 = 33000; // the value of var3 = 33000 const unsigned long var4 = 33_1000; // the value of var4 = 4294934760

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions