Skip to content

Calling ToMetric() on a number that rounds up to 1000 displays 1000 instead of 1k #1695

@palenshus

Description

@palenshus

999.9.ToMetric(decimals: 0)

Expected: 1k
Actual: 1000

However this works as expected:
999999.9.ToMetric(decimals: 0) // 1M

As does this:
1000.1.ToMetric(decimals: 0) // 1k

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions