Skip to content

formatReadableQuantity - ClickHouse #325

Description

@xluffy
SELECT
    arrayJoin([1024, 1234 * 1000, (4567 * 1000) * 1000, 98765432101234]) AS number,
    formatReadableQuantity(number) AS number_for_humans

Response

┌─────────number─┬─number_for_humans─┐
│           10241.02 thousand     │
│        12340001.23 million      │
│     45670000004.57 billion      │
│ 9876543210123498.77 trillion    │
└────────────────┴───────────────────┘

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