Skip to content

damianc/math-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published