Documentation of 'org.encog.mathutil.Convert' Java class
Convert
org.encog.mathutil

Class Convert



  • public final class Convert
    extends java.lang.Object
    This class is used to convert strings into numeric values. If the string holds a non-numeric value, a zero is returned.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static double string2double(java.lang.String str)
      Convert a string to a double.
      static int string2int(java.lang.String str)
      Convert a string to an int.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • string2double

        public static double string2double(java.lang.String str)
        Convert a string to a double. Just make the number a zero if the string is invalid.
        Parameters:
        str - The string.
        Returns:
        The string converted to numeric.
      • string2int

        public static int string2int(java.lang.String str)
        Convert a string to an int. Just make the number a zero if the string is invalid.
        Parameters:
        str - The string.
        Returns:
        The string converted to numeric.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.