Functions Index :: A :: ArrayNegate

[<< up one level]

Module:

array :: functions

Definition:

ArrayNegate(string array)

Description:

Inverses the sign of all elements of array (the same as multiplying with -1) and returns the resulting array.

Examples:

a1 = "2,3,5,1.45,-23,-2.4,4"

a2 = a1.ArrayNegate() # a2 == "-2,-3,-5,-1.45,23,2.4,-4"

a3 = ArrayOpArray(a1, a2, "+")

# a3 contains all zeros [a1 + (-a1) = 0]

 

[<< top]

  $notes