private parseInt ( Object @string, Object radix ) : double | ||
@string | Object | |
radix | Object | |
Résultat | double |
public static double parseInt(Object @string, Object radix){
String str = Convert.ToString(@string);
return Convert.ToNumber(str, true, true, radix);
}
public static double ToNumber(string str) { if (str == "") { return(0); } if (str.IndexOfAny(new char [] { 'x', 'X' }) != -1) { return(GlobalObject.parseInt(str, null)); } else { return(GlobalObject.parseFloat(str)); } }