@itwin/presentation-components
Version:
React components based on iTwin.js Presentation library
21 lines • 822 B
TypeScript
import { type ParserSpec } from "@itwin/core-quantity";
import type { PropertyValueConstraints } from "../../common/ContentBuilder.js";
/**
* Finds rounding error for entered value and converts it to persistence unit.
* @internal
*/
export declare function getPersistenceUnitRoundingError(numberStr: string, parser: ParserSpec): number | undefined;
/** @internal */
export declare function getMinMaxFromPropertyConstraints(constraints?: PropertyValueConstraints): {
min: number | undefined;
max: number | undefined;
};
/** @internal */
export declare function applyNumericConstraints({ value, min, max }: {
value: number;
min?: number;
max?: number;
}): number;
/** @internal */
export declare function getDecimalRoundingError(numStr: string): number | undefined;
//# sourceMappingURL=Utils.d.ts.map