roundedNumber

Description

Renders a number rounded, eg. 1234 = 1.2k

Usage

In HTML Template Binding

{{ roundedNumber_expression | roundedNumber }}

In JavaScript

$filter('roundedNumber')(value)

Parameters

Param Type Details
value number

The number to round.

Example

Source



Demo