mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 12:01:00 +00:00
19 lines
557 B
TypeScript
19 lines
557 B
TypeScript
//#region src/compat/math/multiply.d.ts
|
|
/**
|
|
* Multiply two numbers.
|
|
*
|
|
* If either of the numbers is `NaN`, the function returns `NaN`.
|
|
*
|
|
* @param {number} value The first number in a multiplication
|
|
* @param {number} other The second number in a multiplication
|
|
* @returns {number} The product of value and other
|
|
*
|
|
* @example
|
|
* multiply(2, 3); // => 6
|
|
* multiply(2, NaN); // => NaN
|
|
* multiply(NaN, 3); // => NaN
|
|
* multiply(NaN, NaN); // => NaN
|
|
*/
|
|
declare function multiply(value: number, other: number): number;
|
|
//#endregion
|
|
export { multiply }; |