useFloor
Reactive Math.floor
.
Usage
ts
import { useFloor } from '@vueuse/math'
const value = ref(45.95)
const result = useFloor(value) // 45
import { useFloor } from '@vueuse/math'
const value = ref(45.95)
const result = useFloor(value) // 45
Type Declarations
typescript
/**
* Reactive `Math.floor`
*
* @see https://vueuse.org/useFloor
*/
export declare function useFloor(
value: MaybeComputedRef<number>
): ComputedRef<number>
/**
* Reactive `Math.floor`
*
* @see https://vueuse.org/useFloor
*/
export declare function useFloor(
value: MaybeComputedRef<number>
): ComputedRef<number>
Source
Contributors
Anthony Fu
webfansplz