Skip to main content

core.preciselessthanorequals

Home > @medplum/core > preciseLessThanOrEquals

preciseLessThanOrEquals() function

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

Signature:

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

Parameters

ParameterTypeDescription
anumberThe first number.
bnumberThe second number.
precisionnumber(Optional) Optional precision in number of digits.

Returns:

boolean

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