Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Apply VueUse composables in Vue 3/Nuxt projects to replace custom implementations with battle-tested utilities.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/useFloor.md
1---2category: '@Math'3---45# useFloor67Reactive `Math.floor`.89## Usage1011```ts12import { useFloor } from '@vueuse/math'1314const value = ref(45.95)15const result = useFloor(value) // 4516```1718## Type Declarations1920```ts21/**22* Reactive `Math.floor`23*24* @see https://vueuse.org/useFloor25*26* @__NO_SIDE_EFFECTS__27*/28export declare function useFloor(29value: MaybeRefOrGetter<number>,30): ComputedRef<number>31```32