Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Random C++ code? bug
Message
From
09/09/2009 12:16:34
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01423285
Message ID:
01423296
Views:
34
>>>>I would prefer an error message 1988.
>>>>RAND () is enough for me as a random function :-)
>>>>
>>>>This return two numbers!
>>>>
>>>>? $2291909071000729
>>>>? $22919090710007290
>>>>
>>>>
>>>>this works
>>>>
>>>>? $999999999999999
>>>>
>>>
>>>Fabio,
>>>
>>>
>>>ln = CAST(22919090710007290 as N(20))
>>>=MESSAGEBOX( TRANSFORM(ln,'@$ 999,999,999,999,999,999,999.99'))
>>
>>Sure!
>>But it is too static for my taste! :-)
>>
>>
>>ln = CAST(22919090710007299 as N(20))
>>=MESSAGEBOX( TRANSFORM(ln,'@$ 999,999,999,999,999,999,999.99'))
>>
>
>Check "Visual FoxPro System Capacities" in Help. I guess the computations up to 15 digits can give the correct numbers.

Then, why do you use it with 17 digits ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform