UNPKG

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