Sarraf API
    Preparing search index...

    Function toMajorFixed

    • Format minor units with a fixed number of decimals (e.g. Fawry always wants 2). Throws instead of silently rounding when decimals is smaller than needed.

      Parameters

      • minor: number
      • currency: Currency
      • decimals: number

      Returns string