"Sputnik" help  
Sputnik Help
SumDouble(<array>, <queryStm>)

Description

Calculates the sum of values in an array based on a specified query statement. (Values will be used as or converted to 64-Bit Floating Points)

Parameters

<array> The array containing values.
<queryStm> The query statement to evaluate for each array element to obtain the values.

Return Value

Success: Returns the sum of the values in the array.
Failure: Returns 0.

Remarks

The SumDouble function is designed to calculate the sum of values in an array based on a specified query statement

Make sure to read about the ->> and the =>> operators which are very often used in Linq statements.

Related

Example

Example of usage:

my $a = [10.5, 5, 2];
say SumDouble($a, $c => $c);
// PRINTS
// 17.5

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org