Skip to content

I can save negative number in properties but get a wrong number when query the property #12

@cnoork

Description

@cnoork

I save for instance -6 and when I request the number I get -4294967302
The number will be showed in the payload as:

{"low":-6,"high":-1}

I use the following function to combine the low/high to get that big number which I did not expect:

function highLow(value) {
    if ( value.high && value.low ) {
        var result = value.high * 4294967296 + value.low
    } else {
        result = value
    }
    return result
}

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