simple-squiggle

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

mod.js (301B)


      1 export var modDocs = {
      2   name: 'mod',
      3   category: 'Operators',
      4   syntax: ['x % y', 'x mod y', 'mod(x, y)'],
      5   description: 'Calculates the modulus, the remainder of an integer division.',
      6   examples: ['7 % 3', '11 % 2', '10 mod 4', 'isOdd(x) = x % 2', 'isOdd(2)', 'isOdd(3)'],
      7   seealso: ['divide']
      8 };