On this page
useFloor
| Category | @Math |
|---|---|
| Export Size | 114 B |
| Package | @vueuse/math |
| Last Changed | 2 weeks ago |
Reactive Math.floor.
Usage
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: MaybeRefOrGetter<number>
): ComputedRef<number>
Source
© 2019-present Anthony Fu
Licensed under the MIT License.
https://vueuse.org/math/useFloor/