PRB: STR() Returns Scientific NotationID: Q126139 2.5x 2.60 2.60a | 2.5x 2.60 2.60a | 2.5x 2.60a | 2.60 kbprg kbprb
The information in this article applies to:
SYMPTOMSThe STR() function returns a number in scientific notation.
CAUSEThe number passed to the STR() function has more than 10 digits.
RESOLUTIONUse the optional second parameter for the STR() function to specify the total number of digits to return. If this second parameter is not large enough, scientific notation will still be returned.
MORE INFORMATION
Steps to Reproduce BehaviorType the following command in the Command window:
Note that the string returned in the wait window is: .1234E+13.
To prevent FoxPro from returning scientific notation, specify the number of digits for the STR() function to return, as in the following example:
For more information about changing the scientific notation used by FoxPro,
please see the following article in the Microsoft Knowledge Base:
Additional reference words: FoxWin FoxDos FoxMac FoxUnix 2.50 2.50a 2.50b
2.50c 2.60 2.60a
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral
|
|
Last Reviewed: March 28, 1996 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |