Calculate the sum of values in a given array
array:sum(ARRAY $array) : FLOAT
array:sum([1,2,3])
#=> 6.0
# note: it returns 0.0 (type_float) if given array is empty!
array:sum([])
#=> 0.0
# note: this function, automatically transforms the elements types to type_float
array:sum(['1hi','good','bad'])
#=> 1.0
Copyright ©2013-2022 SunSed®. All rights reserved.