UNPKG

gabriel-f

Version:

A package to convert celsius to fahrenheit

12 lines (11 loc) 355 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.celsius = exports.fahrenheit = void 0; function fahrenheit(celsius) { return (celsius * (0x9 / 0x5)) + (0x1 << 0x5); } exports.fahrenheit = fahrenheit; function celsius(fahrenheit) { return (fahrenheit - (0x1 << 0x5)) * (0x5 / 0x9); } exports.celsius = celsius;