# Welcome back

## Find a book, put up your feet, stay awhile

Sign in with Facebook

Sorry, we are unable to log you in via Facebook at this time. Please try again later.

or

Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more

Download

Standard view

Full view

of .

Look up keyword

Like this

Share on social networks

4Activity

×

0 of .

Results for: No results containing your search query

P. 1

Computer Number Systems, Approximation in Numerical ComputationRatings: (0)|Views: 146|Likes: 2

Published by MyWBUT - Home for Engineers

Computer Number Systems, Approximation in Numerical Computation

Computer Number Systems, Approximation in Numerical Computation

Published by: MyWBUT - Home for Engineers on Jul 21, 2011

Copyright:Attribution Non-commercial

See more

See less

https://www.scribd.com/doc/60563351/Computer-Number-Systems-Approximation-in-Numerical-Computation

08/04/2014

text

original

Computer Representation of Numbers and Computer Arithmetic

In a Computer numbers are represented by binary digits 0 and 1. Computers employbinary arithmetic for performing operations on numbers. Since it gets cumbersome todisplay large numbers in binary form computers usually display them in hexadecimal oroctal or decimal system. All of these number systems are positional systems. In apositional system a number is represented by a set of symbols. Each of these symbolsdenote a particular value depending on its position. The number of symbols used in apositional system depends on its 'base'. Let us now discuss about various positionalnumber systems:

Decimal System

:The decimal system uses 10 as its base value and employs ten symbols 0 to 9 inrepresenting numbers. Let us consider a decimal number 7402 consisting of foursymbols 7,4,0,2. In terms of base 10 it can be expressed as follows.So each of the symbols from a set of symbols denoting a number is multiplied withpower of the base (10) depending on its position counted from the right. The countalways begins with 0.In general a decimal number consisting of symbols can beexpressed as:where,

mywbut.com 1

Similarly, a fractional part of a decimal number can be expressed as

Binary system:

Binary system is the positional system consisting of two symbols i.e. 0,1 and '2' as itsbase. Any binary number actually represents a decimal value given bywhereConsider the binary number 10101. The decimal equivalent of 10101 is given by

Hexadecimal System

:The Hexadecimal system is the positional system consisting of sixteen symbols,0,1,2...9,A,B,C,D,E,F, and '16' as its base. Here the symbols A denotes 10, B denotes11 and so on. The decimal equivalent of the given hexadecimal number isgiven by . For example consider.We can convert a binary number directly to a hexadecimal number by grouping thebinary digits, starting from the right, into sets of four and converting each group to itsequivalent hexadecimal digit. If in such a grouping the last set falls short of four binarydigits then do the obvious thing of prefixing it with adequate number of binary digit '0'.

mywbut.com 2

For example let us find the hexadecimal equivalent ofThe vice-versa is also true.

Octal System:

The octal system is the positional system that uses 8 as its base andas its symbol set of size 8. The decimal equivalent of an octal numberis given by . Forexample considerWe can get the octal equivalent of a binary number by grouping the binary digits,starting from the right, into sets of three binary digits and converting each of these setsto its octal equivalent. If such a grouping results in a last set having less number ofdigits it may be prefixed with adequate number of binary digit 0. As an example theoctal equivalent of

Conversion of decimal system to non-decimal system:

To convert a decimal number to a number of any other system we should consider theinteger and fractional parts separately and follow the following procedure:

Conversion of integer part:

(a) Consider the integer part of a given decimal number and divide it by the base b ofthe new number system. The remainder will constitute the rightmost digit of the integer

mywbut.com 3

- Read and print without ads
- Download to keep your version
- Edit, email or read offline

© Copyright 2015 Scribd Inc.

Language:

Choose the language in which you want to experience Scribd:

Sign in with Facebook

Sorry, we are unable to log you in via Facebook at this time. Please try again later.

or

Password Reset Email Sent

Sign up with Facebook

Sorry, we are unable to log you in via Facebook at this time. Please try again later.

or

By joining, you agree to our

read free for one month

Personalized recommendationsbased on books you love

Syncing across all your devices

Join with Facebook

or Join with EmailSorry, we are unable to log you in via Facebook at this time. Please try again later.

Already a member? Sign in.

By joining, you agree to our

to download

Personalized recommendationsbased on books you love

Syncing across all your devices

Continue with Facebook

Sign inJoin with emailSorry, we are unable to log you in via Facebook at this time. Please try again later.

By joining, you agree to our

Are you sure?

This action might not be possible to undo. Are you sure you want to continue?

CANCEL

OK

You've been reading!

NO, THANKS

OK

scribd