C# Class Encog.MathUtil.Convert

This class is used to convert strings into numeric values. If the string holds a non-numeric value, a zero is returned.
Show file Open project: encog/encog-silverlight-core

Public Methods

Method Description
String2Double ( String str ) : double

Convert a string to a double. Just make the number a zero if the string is invalid.

String2Int ( String str ) : int

Convert a string to an int. Just make the number a zero if the string is invalid.

Method Details

String2Double() public static method

Convert a string to a double. Just make the number a zero if the string is invalid.
public static String2Double ( String str ) : double
str String The string.
return double

String2Int() public static method

Convert a string to an int. Just make the number a zero if the string is invalid.
public static String2Int ( String str ) : int
str String The string.
return int