Skip to content

Currency: number representation + server/client discrepencies. #20

@ghost

Description

  1. Currency values seem to be uniformly returned in floating point notation. Is it possible to return a currency value in the same representation that it's passed in as? Or, at the least, allow for a notation option (notation="integer")?

    For example:
    40000, USD --> $40,000          // Integer --> Integer
    40000.00, USD --> $40,000.00    // Decimal --> Decimal
    
  2. In practice, I've found that currency values are returned in floating point notation on the server, but in integer notation on the client. Is there a reason for this discrepancy?

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions