@yookue/ts-lang-utils
    Preparing search index...

    Function toFloat

    • Returns a float value from the given source

      Parameters

      • Optionalsource: null | string | number

        the source value to inspect

      • OptionaldefaultValue: number

        the default value if the source cannot be converted

      Returns undefined | number

      a float value from the given source

      David Hsing

      toFloat('1.0');    // 1.0