webcad-api/types/Common/eval.d.ts

16 lines
633 B
TypeScript
Raw Normal View History

2020-10-15 10:22:20 +08:00
/**
* eval2("+10", { L: 100 }, "L")
* @param expr
* @param [params]
* @param [defaultParam] +10 ,
* @returns
*/
export declare function eval2(expr: string, params?: {}, defaultParam?: string): number;
export declare function safeEval(expr: string, params?: {}, defaultParam?: string): number;
2020-09-24 11:04:12 +08:00
export declare function CheckExpr(expr: string, params: any): {
res: any;
error: any;
};
2023-08-16 15:05:08 +08:00
/**解析大括号内的表达式 */
export declare function ParseExpr(expr: string, fractionDigits?: number, params?: {}): string;
2020-09-24 11:04:12 +08:00
//# sourceMappingURL=eval.d.ts.map