Files
stack/v1/packages/mosaic/framework/skills/vueuse-functions/references/useRound.md
T

410 B

category
category
@Math

useRound

Reactive Math.round.

Usage

import { useRound } from '@vueuse/math';

const value = ref(20.49);
const result = useRound(value); // 20

Type Declarations

/**
 * Reactive `Math.round`.
 *
 * @see https://vueuse.org/useRound
 *
 * @__NO_SIDE_EFFECTS__
 */
export declare function useRound(value: MaybeRefOrGetter<number>): ComputedRef<number>;