neg

reverse sign of given value and return it


Parameters

neg value :integer :floating :complex :rational :literal :quantity

Returns

  • :integer
  • :floating
  • :complex
  • :rational
  • :quantity
  • or  :nothing

Examples

copy
print neg 1 ; -1

copy
a: 5 neg 'a ; a: -5

Related