UNPKG

rich-domain

Version:

This package provide utils file and interfaces to assistant build a complex application with domain driving design

19 lines 675 B
/** * @description Converts a number to its decimal equivalent by dividing it by 100. * This is useful for normalizing values, such as converting percentages to decimals. * * @param value The input value to convert. Must be a number. * * @returns The decimal equivalent of the input number. * If the input is not a valid number, it returns the input as is. * * @example * ```typescript * ToDecimal(500); // Returns 5 * ToDecimal(25); // Returns 0.25 * ToDecimal("100"); // Returns "100" (input not a valid number) * ``` */ export declare const ToDecimal: (value: number) => number; export default ToDecimal; //# sourceMappingURL=to-decimal-number.util.d.ts.map