Skip to content
On this page

useCeil

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

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

SourceDocs

Contributors

Anthony Fu
webfansplz

Changelog

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

Released under the MIT License.