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.
Afficher le fichier Open project: encog/encog-silverlight-core

Méthodes publiques

Méthode 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 méthode

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.
Résultat double

String2Int() public static méthode

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.
Résultat int