TYPE() Returns "N" for Double, Float, and IntegerID: Q130350 3.00 WINDOWS The information in this article applies to:
SUMMARYIn Visual FoxPro for Windows, a field may be given the TYPE B for Double, and F for Float, but the TYPE() function always returns "N" (Numeric) for Double, Float, and Integer data types.
MORE INFORMATION
Sample CodeThe following code demonstrates this:
Here is the result:
Why Numeric Is Always Returned
The Float type is included for compatibility only. It is functionally equivalent to Numeric. The Double type is relevant only in a table, denoting how the field data is stored to disk. All Float types are stored internally as Doubles, converted to ASCII when written to disk, and then converted back when read. This can result in a loss of accuracy, so a Double type field is stored as an 8-byte binary value to avoid inaccuracies. Additional reference words: 3.00 VFoxWin character KBCategory: KBSubcategory: FxprgGeneral
|
Last Reviewed: November 24, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |