[Home]  > Snippets  > Languages  > JavaScript  > Numbers

Languages » JavaScript » Numbers (Other)

  • Add an ordinal suffix to a number
  • Calculate Fibonacci numbers
  • Calculate the average of arguments
  • Calculate the division of arguments
  • Calculate the factorial of a number
  • Calculate the mod of collection index
  • Calculate the remainder of division of arguments
  • Calculate the sum of arguments
  • Clamp a number between two values
  • Compute the greatest common divisor between two numbers
  • Convert a number to equivalent characters
  • Convert a string to number
  • Convert decimal to binary recursively
  • Get the arrays of digits from a number
  • Multiply arguments
  • Prefix an integer with zeros
  • Round a number to a given number of digits
  • Subtract arguments
  • Truncate a number at decimal
  • Truncate a number to a given number of decimal places without rounding
  • Wrap a number between two values
Repo

    Repo: github.com/mrpotatoes

    Code & Repo orginally Phước Nguyễn's 1loc's code/repo

About
©- Anahi LibreSinn. All rights reserved.

Home

Eleventy
    • Website Generator: Eleventy