Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COBOL negative values
Message
 
À
25/01/2010 21:06:25
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01445813
Message ID:
01445944
Vues:
29
>>>>I can see an amount like $123.45 being 000012345 (the left seven being 0000123 and the right two being 45).
>>>>
>>>>But how do I express -$123.45 ?? Since I can't put the - in the string at all, since it wants only numeric values......
>>>>
>>>>Thanks!
>>>
>>>VariableName PIC S999V99.
>>
>>Thanks, Grady.... we found some code here that will convert from the Decimal to the Cobol representation for negative numbers.
>
>Sign trailing overpunch? It's been 23 years since I last had to think about that. Unless, of course, it's a BCD, which is another format I forgot the same day :).

Don't worry - It'll probably come back in style with the next Microsoft technology leap (backwards).
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform