Skip to content
On this page

useCeil

Category
Export Size
202 B
Package
@vueuse/math
Last Changed
2 months ago

Reactive Math.ceil

Usage

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

/**
 * 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

SourceDocs

Contributors

Changelog

v8.9.2 on 7/12/2022
80461 - feat: new function (#1818)

Released under the MIT License.