Pathfinder 1e for Foundry VTT
    Preparing search index...
    • Internal

      Alt numberFormat helper to provide non-fixed point decimals and pretty fractionals

      Parameters

      • number: number
      • Optionalcontext: { hash?: { decimals?: number; fraction?: boolean } } = {}

      Returns string | number

      • Formatted number
      {{numberFormatAlt 5.52 decimals=1}} -> 5.5
      {{numberFormatAlt 5 decimals=1}} -> 5
      {{numberFormatAlt 5.5 fraction=true}} -> 5 1/2
      

      Compare with core helper

      {{numberFormat 5.52 decimals=1}} -> 5.5
      {{numberFormat 5 decimals=1}} -> 5.0