Skip to content
This repository was archived by the owner on Jul 2, 2018. It is now read-only.
This repository was archived by the owner on Jul 2, 2018. It is now read-only.

Decimal precision #80

@0x7061

Description

@0x7061

Hi,

I don't seem to figure out how to set a fixed precision, let's say 4.

I tried:

price = EUR(coin.price) // Double
...
cell.price.text = "\((price as EUR).formatted(withStyle: NumberFormatter.Style.decimal))"

Would be glad to get some insight, thanks!

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