StringUtils.ParseDouble method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Strings
Assembly Skybrud.Essentials.dll

ParseDouble(string)

Static

Parses the specified str into an instance of Double . If the parsing fails, the default value of Double will be returned instead.

public static double ParseDouble(string str)

Parameters

str String

The string to be parsed.

Returns

An instance of Double .

ParseDouble(string, double)

Static

Parses the specified str into an instance of Double . If the parsing fails, fallback will be returned instead.

public static double ParseDouble(string str, double fallback)

Parameters

str String

The string to be parsed.

fallback Double

The fallback value that will be returned if the parsing fails.

Returns

An instance of Double .