Navigation:  Reference > Functions >

ConvertToFloat()

Print this Topic Previous pageReturn to chapter overviewNext page

 

CFLT(1)

 

PURPOSE

This function will return the given field as an N type (floating point) field.

 

PARTS

 

1 f/c/eRequired - The field to be converted to N type.

 

RETURN TYPE - N

The original field is not changed.

 

COMMENTS

An F type field cannot be converted to N ; however, all others can (including A type fields).  If an L type field is converted, a .T. value will be converted to 1.00, a .F. to 0.00.

 

NOTE:  The number of decimal characters of the result depends on your receiving field.  However, in all cases, other than converting an A type field such as '100.33' to N using this function, the decimal value will always be 0.

 

SEE ALSO

DATE()   Convert to Date CTOD() Convert to time CTOT()   TIME GET SET  Convert time to record TTOR()  Covert time to number TTOF() Convert time to string TTOC()

TIME() YEAR() Date Command  Date to Record DTOR()  Convert date to Character DTOC() Days in month DAY_IN_MONTH

Increment the Month INC_MONTH DayMonthyear DMY()  Month Day Year MDY()

Charicter of month CMNTH()  Charicter to day of week CDOW()

 

 


Page url: http://www.cassoftware.com/tas/manual/converttofloat().htm