Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

math-common

Functions for GCD, LCM and LCD.

  • Math.gcd(...nums) - returns greatest common divisor/factor of given numbers
  • Math.lcm(...nums) - returns least/lowest common multiple of given numbers
  • Math.lcd(...nums) - returns lowest/least common denominator of given numbers

Use Example

Math.gcd(48,18,30)
// 6

Math.lcm(4,6,8)
// 24

Math.lcd(3,4,6)
// 12

About

Functions for GCD, LCM and LCD.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages