round

round definition - computer

To eliminate rightmost digits in a number when absolute precision is not required or used. One of the most common uses of rounding is with dollar amounts, which can result in more than two decimal places after a division. Following are four of many rounding methods:

  Round Half Up    3.455 -> 3.46
                   3.454 -> 3.45

  Round Half Down  3.455 -> 3.45
                   3.456 -> 3.46

  Round Up         3.456 -> 3.46
                   3.453 -> 3.46

  Round Down       3.458 -> 3.45
                   3.453 -> 3.45




_BOOKMTH.JPG


Rounding and a Lot More

For more ways to round numbers than you can imagine, as well as to learn how computers perform mathematical functions at the circuit level, read the entertaining and informative book, "How Computers Do Math" by Clive "Max" Maxfield and Alvin Brown. (John Wiley & Sons, Inc. 2005, ISBN 0-471-73278-8).






Computer Desktop Encyclopedia THIS DEFINITION IS FOR PERSONAL USE ONLY
All other reproduction is strictly prohibited without permission from the publisher.
Copyright © 1981-2009 by Computer Language Company Inc. All rights reserved.

Comments


Do you have more to add? Sign in to share your linguistic knowledge or observation.

Connect with Facebook