Function parseFloat

    • Converts a string to a floating-point number.

      Parameters

      • string: string

        A string that contains a floating-point number.

      Returns number