Skip to content

useRound ​

类别
导出大小
92 B
包
@vueuse/math
最近修改
7 months ago

反应性 Math.round。

🌐 Reactive Math.round.

用法 ​

🌐 Usage

ts
import { 
useRound
} from '@vueuse/math'
const
value
=
ref
(20.49)
const
result
=
useRound
(
value
) // 20