sign.js 275 B

12345678
  1. export var signDocs = {
  2. name: 'sign',
  3. category: 'Arithmetic',
  4. syntax: ['sign(x)'],
  5. description: 'Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.',
  6. examples: ['sign(3.5)', 'sign(-4.2)', 'sign(0)'],
  7. seealso: ['abs']
  8. };