Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Large numbers with high decimal precision
Message
De
30/08/2011 07:56:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
29/08/2011 23:46:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01522171
Message ID:
01522227
Vues:
87
>>Client's data has SQL columns of Decimal(22,10)
>>
>>I have remote views and controls bound to those views.
>>
>>How can I let the client enter 123456789012.1234567890 and have that saved to the back end.
>>
>>Seems the best I can do in a VFP cursor is 123456789012.1235000000 which is unacceptable. (
>>
>>B(16) float doesn't seem to help.
>>
>>Do I just tell them "sorry, VFP can't handle SQL numbers"
>>
>>Do I have to fiddle something using text fields and building SPT from scratch ( completely destroying the structure of the app for a couple of field values)
>>
>>Having kind of an I hate Foxpro day.
>>
>>Any help ?
>
>As you've found, VFP only natively supports 15/16 digits of precision.
>
>Hilmar Zonneveld has made available Download#10044 which is supposed to support arbitrary precision (I haven't used it). Maybe you can use it, or get some ideas from it.
>
>The only other approach I can think of is to split the field, into, say, one part for the integer, the other for the decimal portion. But, that's the ugly fiddling you're trying to avoid.

The download is supposed to allow calculations within Visual FoxPro. The number are stored as string. Charles can just as well accept a string and store it as such on the back-end server; I don't think my download will help in this scenario.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform