Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG in VAL() function
Message
De
12/12/2003 13:26:17
 
 
À
12/12/2003 12:52:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00858634
Message ID:
00858696
Vues:
17
>Hi Esparta,
>
>this is correlate with decimals:
>
>? VAL('$95.0000                    ')
>
>
>the workaround is:
>
>? VAL('$95.00                     '+'0')
>
>
>Fabio
This is pretty weird. I tried this on VFP6 SP5
? VAL('$95.0000                    ') &&returns 65631
? VAL('$95.0000                   ') &&returns 95.0010
? VAL(trim('$95.00                     ')) &&returns 95.0000
? VAL('$95.00ABCDEFGHILMNOHJYUIKDD') &&returns 95.0010
? VAL('$95.00                     '+'0') &&returns 65631
? VAL('    $95.00                     ') &&returns 95.0000
? VAL('     $95.00ABCDEFGHILMNOHJYUIKDD') &&returns 195.0000
? VAL('    $95 .00                     ')&&returns 195.0000
? VAL('    $95  .00                     ') &&returns 145.0000
? VAL('    $95   .00                     ') &&returns 95.0000
? VAL('    $95    .00                     ') &&errors with currency value is out of range
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform