Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(useRound): the value of the given number rounded to the nearest integer #1821

Closed
4 tasks done
LittleSound opened this issue Jul 10, 2022 · 0 comments
Closed
4 tasks done
Labels
enhancement New feature or request

Comments

@LittleSound
Copy link
Contributor

Clear and concise description of the problem

from #1812

Suggested solution

import { useRound } from '@vueuse/math'

const decimal = ref(0.5)
const value1 = useRound(decimal)
// or reactive
const value2 = useRound(() => decimal.value)

Alternative

No response

Additional context

No response

Validations

@LittleSound LittleSound added the enhancement New feature or request label Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant