@yetnt/ump
Version:
A very useless math package for your complex javascript projects
11 lines (10 loc) • 437 B
TypeScript
/**
* Converts between Temperature units
*
* @param n - The value to be converted
* @param from - The current temperature unit. Param accepts these string forms - `["celsius", "Celsius", "c", "C"]`
* @param to - The temperature unit to be converted to. Param accepts these strings - `["Kelvin", "kelvin", "k", "K"]`
*
* @returns Converted Temperature
*/
export declare function temp(n: number, from: string, to: string): number;