Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
STR() rounds numbers longer than 17 digits...?
Message
 
 
À
03/01/2001 09:55:06
Andrzej Majlich
Vulcan sp. z o. o.
Wroclaw, Pologne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00458883
Message ID:
00458916
Vues:
23
Hi!

I don't know exactly. What do you want to get by your question? It looks for me you want to figure out bug instead of solving problem. I found solution, the rest - I don't know about.

Question could not be invalid. Only answer could be invalid.

>>? transform(-$922337203685477.5807,'99999999999999999.9999')
>>shows -922337203685477.5807
>
>TRANSFORM really does a thing. But 16 digits handled by STR aren't an effect of converting currency to numeric. Notice that
>
>>>str(-922337203685477.5807,21,4)=='-922337203685477.6000'
>
>doesn't deal with currency type variable or literal. So the question about the STR is valid.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform