Skip to main content

core.precisegreaterthanorequals

Home > @medplum/core > preciseGreaterThanOrEquals

preciseGreaterThanOrEquals() function

Returns true if the first number is greater than or equal to the second number to the given precision.

Signature:

export declare function preciseGreaterThanOrEquals(a: number, b: number, precision?: number): boolean;

Parameters

Parameter

Type

Description

a

number

The first number.

b

number

The second number.

precision

number

(Optional) Optional precision in number of digits.

Returns:

boolean

True if the first number is greater than or equal to the second number to the given precision.