On this page
useRound
| Category | @Math |
|---|---|
| Export Size | 115 B |
| Package | @vueuse/math |
| Last Changed | 2 weeks ago |
Reactive Math.round.
Usage
import { useRound } from '@vueuse/math'
const value = ref(20.49)
const result = useRound(value) // 20
Type Declarations
/**
* Reactive `Math.round`.
*
* @see https://vueuse.org/useRound
*/
export declare function useRound(
value: MaybeRefOrGetter<number>
): ComputedRef<number>
Source
© 2019-present Anthony Fu
Licensed under the MIT License.
https://vueuse.org/math/useRound/