round.js 592 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.roundDocs = void 0;
  6. var roundDocs = {
  7. name: 'round',
  8. category: 'Arithmetic',
  9. syntax: ['round(x)', 'round(x, n)'],
  10. description: 'round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.',
  11. examples: ['round(3.2)', 'round(3.8)', 'round(-4.2)', 'round(-4.8)', 'round(pi, 3)', 'round(123.45678, 2)'],
  12. seealso: ['ceil', 'floor', 'fix']
  13. };
  14. exports.roundDocs = roundDocs;