Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remainder
Message
De
21/12/2012 02:33:28
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01560368
Message ID:
01560372
Vues:
71
You're welcome.

>ahhhh perfect - thanks tore - i knew both of these functions but did not reason that by dividing by 1 you have no remainder unless of course you have a fraction afterwards -- very clever.
>
>k
>
>and don't understand how the 1 eliminates the integer.
>is not mod(20,3) will show the remainder of 20 divided by 3
>
>>>N=301.45
>>>? n-int(n)
>>>
>>>Just curious - is there a way of displaying .45 without substracting the integer.
>>>
>>>tnx
>>>k
>>
>>Yes, there are two ways built in
>>?n%1
>>?mod(N,1)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform