neg

reverse sign of given value and return it


Parameters

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

Returns

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

Examples

copy
print neg 1 ; -1

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

Related