Skip to content

useRound

反应式 Math.round

¥Reactive Math.round.

用法

¥Usage

ts
import { useRound } from '@vueuse/math'

const value = ref(20.49)
const result = useRound(value) // 20