Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TSDWIN: Clipper 5.0 Interface Library - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

 twStr2Num( cValue )
 ----------------------------------------------------------------------------
     The functions twDec2Sci(), twSci2Dec(), twStr2Num() and
     twNum2Str() attempt to provide a temporary solution to Clipper's
     inability to display floating point numbers.

     twStr2Num() attempts to return a numeric value for an string
     representation of a number in the range 10-300 to 10300 when it
     is formatted with either STR() or twDec2Sci(). IF in STR() format,
     VAL() is used. If in scientific notation, twSci2Dec() is used.

     NOTE: Numbers outside the MSC calculation range will result in a
           MSC error which cannot be trapped with ERRORSYS.

       Arguments:

     cValue - 'C' String representation of a number formatted with
                  either STR() or twDec2Sci().

       Return:

     Numeric value or crash if out of range of MSC.

       Example:

     twStr2Num( "345.56" )   -> 345.56

     twStr2Num( "2.3456E12") ->  2.3456 * 1012

See Also: twDec2Sci() twSci2Dec() twNum2Str()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson