Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A curious note about the STR() function
Message
From
09/08/1999 13:28:20
 
 
To
09/08/1999 13:18:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00251576
Message ID:
00251608
Views:
7
That could be but the documentation specifically states that the Width is supposed to include the decimal point and precision numbers. I think you are right and the documentation is messed up.

>It doesn't really matter since the max precision is 15-20 digits anyway (I don't remember it exactly).
>
>Just a guess: The max number of decimal places is 18. One is reserved for the decimal point. So, 256 - 18 - 1 = 237.
>
>Vlad
>
>>As you know, STR(nVar,nWidth,nDec) returns a string from a numeric value. What you probably didn't know is that nWidth cannot exceed 237. Anyone know why? I could understand 254 maybe, but 237 seems arbitrary.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform