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