Skip to content

Conversation

GlintonLiao
Copy link
Contributor

Hi,

I added three reactive math functions in the math folder, including:

  • mod(): get the remainder of two numbers a and b when dividing a by b.

  • gcd(): get the greatest common divisor of two numbers.

  • lcm(): get the least common multiple of two numbers.

Besides, I added math test modules, covering all functions inside /src/math/index.ts.

@antfu antfu merged commit 85bc226 into vueuse:main Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants