Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_allfloat() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_ALLFLOAT()

 DESCRIPTION

 C_ALLFLOAT() checks a character string to determine if it contains
 only numeric characters (0-9) and one period for a decimal place.
 The numeric characters checked are ASCII 48 through 57 and ASCII 46
 (period).

 SYNTAX

 C_ALLFLOAT(string)

 PARAMETERS

 string (C) is the character string to check.

 RETURNS

 C_ALLFLOAT() returns true (.T.) if all characters in the string are
 numeric and there is one period for the decimal place, otherwise
 false (.F.).

 EXAMPLES

 ? c_allfloat("1234.5")  --> .T.
 ? c_allfloat("12345a")  --> .F.    && Contains character "a"
 ? c_allfloat("123456 ") --> .F.    && Contains a space
 ? c_allfloat("123456.") --> .T.
 ? c_allfloat("123.45.") --> .F.    && Contains 2 periods


See Also: C_ALLALPHA() C_ALLXALPH() C_ALLDIGIT() C_NOSPACE()

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