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