Math
You can check the module import here.
bytes
Returns the bytes to an human-readable format.
File
import { NgBytesPipeModule } from 'angular-pipes';Usage
Todo
Be able to change the input unit.
ceil
Ceils a number with a given precision. Take a look at the official documentation on ceil.
File
Usage
floor
Floor a number with a given precision. Take a look at the official documentation on floor.
File
Usage
round
Rounds a number with a given precision. Take a look at the official documentation on round.
File
Usage
degrees
Converts radians to degrees.
File
Usage
radians
Converts degrees to radians
File
Usage
random
Returns a random number between a minimum (default: 0) and a maximum (default: 1). The input is ignored. If only one argument is given, it will be the maximum.
File
Usage
sqrt
Returns the square root of a number.
File
Usage
pow
Returns the power of a number.
File
Usage
abs
Returns the absolute of a number.
File
Usage
ordinal
Returns the number with a suffix indicating the ordinal.
File
Usage
Last updated
Was this helpful?