@yetnt/ump
Version:
A very useless math package for your complex javascript projects
11 lines (10 loc) • 405 B
TypeScript
/**
* Divides `x` into the ratio of `y` : `z` and returns the resulting values as an array.
*
* @param x - The value to be divided.
* @param y - The ratio value for `y`.
* @param z - The ratio value for `z`.
* @param round - If set to true, will round of the value to 2 decimal places.
*
*/
export declare function dinRatio(x: number, y: number, z: number, round?: boolean): (number | string)[];