PRB: STR() Returns Scientific NotationLast reviewed: March 27, 1996Article ID: Q126139 |
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:
WAIT WINDOW STR(1234567890123)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:
WAIT WINDOW STR(1234567890123,13)For more information about changing the scientific notation used by FoxPro, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q148784 TITLE : How to Use UDF() to Modify Default Scientific Notation Format |
Additional reference words: FoxWin FoxDos FoxMac FoxUnix 2.50 2.50a 2.50b
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |