UNPKG

555 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.createHex = void 0;
7
8var _baseUtils = require("./baseUtils.js");
9
10/**
11 * Format a number as hexadecimal.
12 *
13 * Syntax:
14 *
15 * math.hex(value)
16 *
17 * Examples:
18 *
19 * //the following outputs "0xF0"
20 * math.hex(240)
21 *
22 * See also:
23 *
24 * oct
25 * bin
26 *
27 * @param {number} value Value to be stringified
28 * @return {string} The formatted value
29 */
30var createHex = (0, _baseUtils.createBaseFormatterFactory)('hex', 16);
31exports.createHex = createHex;
\No newline at end of file