Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mathematical rounding
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00982326
Message ID:
00982376
Vues:
52
Peter,

Below is the rounding principle from math.com:
To round off decimals:

   1. Find the place value you want (the "rounding digit") and look at the digit just to the right of it. [Determine the decimal point or precision you want]
   2. If that digit is less than 5, do not change the rounding digit but drop all digits to the right of it.
   3. If that digit is greater than or equal to five, add one to the rounding digit and drop all digits to the right of it.
Hope this helps.
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform