>>>>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 ?