Skip to content

Strange string to number parsing #113

@angelhodar

Description

@angelhodar

Hey, I have had a strange bug with this, I dont know why but if you input this random id to the querystring like this:

let { filter} = aqp({ uid: '115524599024168443300' }

The filter gets this as output:

{ uid: 115524599024168440000 }

It somehow changes the last threes for zeros. Maybe its some type of overflow? I have solved it by setting that particular castParam to string, but I suppose you wanted to know it.

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