simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

mod.js (427B)


      1 "use strict";
      2 
      3 Object.defineProperty(exports, "__esModule", {
      4   value: true
      5 });
      6 exports.modDocs = void 0;
      7 var modDocs = {
      8   name: 'mod',
      9   category: 'Operators',
     10   syntax: ['x % y', 'x mod y', 'mod(x, y)'],
     11   description: 'Calculates the modulus, the remainder of an integer division.',
     12   examples: ['7 % 3', '11 % 2', '10 mod 4', 'isOdd(x) = x % 2', 'isOdd(2)', 'isOdd(3)'],
     13   seealso: ['divide']
     14 };
     15 exports.modDocs = modDocs;