useFloor
Reactive Math.floor
.
Usage
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
/**
* 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>