How To
Documentation
    Learn More

      roundedNumber

      Description

      Renders a number rounded, eg. 1234 = 1.2k

      Usage

      In HTML Template Binding

      {{ roundedNumber_expression | roundedNumber }}

      In JavaScript

      $filter('roundedNumber')(value)

      Parameters

      ParamTypeDetails
      valuenumber

      The number to round.

      Example

      Source

      
      
      

      Demo