The Numbers Util
Python SDK
Provide functions to manipulate numbers.
The following common functions are provided:
is_number(s)
: return true if the input is a numbernormalize(value, format=None)
: normalize the value based on the given format. If the input is a number, keep a single digit, otherwise return a stringremove_all(array, value_array)
: remove all occurrences of value from arraymin(data)
: calculate the min of a given array of datamax(data)
: calculate the max of a given array of dataavg(data)
: calculate the avg of a given array of datasum(data)
: calculate the sum of a given array of datacount(data)
: count the items of a given array of datacount_unique(data)
: count the (unique) items of a given array of datarandint(min,max)
: return a random int between min and maxhex2int(hex)
: convert a hex string into an integer