Skip to content

Support for BigInt? #391

@shaunhurley

Description

@shaunhurley

Hey folks, curious to understand what (if any) plans you have for supporting the bigint type?

I'm migrating some code to use the latest Square SDK and noticed that they are now returning all numbers as bigint, and creating a currency from a bigint results in a $0.00 value.

currency(100).format() --> $1.00
currency(100n).format() --> $0.00

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions