Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Roundup()
Message
De
30/11/2001 12:55:17
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00588053
Message ID:
00588132
Vues:
33
Caroline,

Sure, but Mark asked how he could round it up to 4 if it was larger than 3. Maybe I'm the one who's brain is addled? Isn't 3.0000001 larger than 3?

Renoir

>Renoir I know its late on a Friday and my brain is addled but doesn't int(3) return 3?
>
>>Caroline,
>>
>>That would not work if the value was an integer already. Maybe something like:
>>
>>
>>nRoundedValue = IIF( nValue > Int(nValue), nValue + 1, nValue)
>>
>>
>>Renoir
>>
>>
>>
>>>How about int(3.0000001)+1
>>>
>>>>Hi all. I am looking for a roundup function that will always round to the next integer, i.e., 3.0000001 rounds to 4. I could swear that I've used such a function in VFP in the past but I sure can't find it today. Any suggestions?
>>>>
>>>>TIA and Happy Friday!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform