Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select returns integer value instead of a decimal value
Message
De
24/02/2000 17:09:37
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL Select returns integer value instead of a decimal value
Divers
Thread ID:
00337156
Message ID:
00337156
Vues:
50
I have a select command like

select ... iif( x > 0, round(y/x,2),0.0) as name ... from ..
into cursor z
browse

where x=111.0 y = 2. In the cursor columns name is 56 instead of 55.5. Doing it manually I get the correct result.
In addition if I use iif(x > 0,round(y/x,2),0) as name I get an single asterisk for name.

What am I missing???
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform