C# 클래스 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.
파일 보기 프로젝트 열기: encog/encog-silverlight-core

공개 메소드들

메소드 설명
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.

메소드 상세

String2Double() 공개 정적인 메소드

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.
리턴 double

String2Int() 공개 정적인 메소드

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.
리턴 int