parseToDoubles

fun parseToDoubles(dblStrings: Array<String>, parseFail: Double = Double.NaN): DoubleArray(source)

Converts the array of strings to Doubles

Return

the parsed doubles as an array

Parameters

dblStrings

an array of strings that represent Doubles

parseFail

the value to use if the parse fails or string is null by default Double.NaN


fun parseToDoubles(dblStrings: List<String>, parseFail: Double = Double.NaN): DoubleArray(source)

Converts the array of strings to Doubles

Return

the parsed doubles as an array

Parameters

dblStrings

a list of strings that represent Doubles

parseFail

the value to use if the parse fails or string is null by default Double.NaN