Polyman Documentation - v3.1.0
    Preparing search index...

    Function formatCost

    • 0.0123 becomes $0.01. Small costs keep 3 digits: $0.004. A cost under $0.001 is <$0.001, so a paid call never looks free ($0.000).

      Parameters

      • costUsd: number

      Returns string