Chapter Binary, Octal, Decimal, and Hexadecimal Calculations



Similar documents
Binary Numbers. Binary Octal Hexadecimal

Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8

Useful Number Systems

CSI 333 Lecture 1 Number Systems

2 Number Systems. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:

Computer Science 281 Binary and Hexadecimal Review

The string of digits in the binary number system represents the quantity

Unsigned Conversions from Decimal or to Decimal and other Number Systems

Chapter 7 Lab - Decimal, Binary, Octal, Hexadecimal Numbering Systems

COMPSCI 210. Binary Fractions. Agenda & Reading

Solution for Homework 2

2011, The McGraw-Hill Companies, Inc. Chapter 3

Number Conversions Dr. Sarita Agarwal (Acharya Narendra Dev College,University of Delhi)

Numbering Systems. InThisAppendix...

Levent EREN A-306 Office Phone: INTRODUCTION TO DIGITAL LOGIC

Base Conversion written by Cathy Saxton

CPEN Digital Logic Design Binary Systems

NUMBER SYSTEMS. 1.1 Introduction

LSN 2 Number Systems. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

CS101 Lecture 11: Number Systems and Binary Numbers. Aaron Stevens 14 February 2011

FX 115 MS Training guide. FX 115 MS Calculator. Applicable activities. Quick Reference Guide (inside the calculator cover)

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

EE 261 Introduction to Logic Circuits. Module #2 Number Systems

Lecture 11: Number Systems

Chapter 4: Computer Codes

Numeral Systems. The number twenty-five can be represented in many ways: Decimal system (base 10): 25 Roman numerals:

Chapter 2. Binary Values and Number Systems

Everything you wanted to know about using Hexadecimal and Octal Numbers in Visual Basic 6

Lecture 2. Binary and Hexadecimal Numbers

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

SCIENTIFIC CALCULATOR OPERATION GUIDE. <Write View>

Positional Numbering System

Goals. Unary Numbers. Decimal Numbers. 3,148 is s 100 s 10 s 1 s. Number Bases 1/12/2009. COMP370 Intro to Computer Architecture 1

Upon completion of unit 1.1, students will be able to

Chapter 1: Digital Systems and Binary Numbers

Systems I: Computer Organization and Architecture

3. Convert a number from one number system to another

Binary Representation. Number Systems. Base 10, Base 2, Base 16. Positional Notation. Conversion of Any Base to Decimal.

THE BINARY NUMBER SYSTEM

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

HOMEWORK # 2 SOLUTIO

Today. Binary addition Representing negative numbers. Andrew H. Fagg: Embedded Real- Time Systems: Binary Arithmetic

Number Systems and Radix Conversion

Number and codes in digital systems

Memory Management Simulation Interactive Lab

2010/9/19. Binary number system. Binary numbers. Outline. Binary to decimal

Basic Use of the TI-84 Plus

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Decimal to Binary Conversion

Pemrograman Dasar. Basic Elements Of Java

PPUM icare SINGLE SIGN ON

ASSEMBLY LANGUAGE PROGRAMMING (6800) (R. Horvath, Introduction to Microprocessors, Chapter 6)

fx-3650p fx-3950p User's Guide Guía del usuario E S

Binary Adders: Half Adders and Full Adders

Third Southern African Regional ACM Collegiate Programming Competition. Sponsored by IBM. Problem Set

Section 1.4 Place Value Systems of Numeration in Other Bases

Digital Design. Assoc. Prof. Dr. Berna Örs Yalçın

Binary Representation

NUMBER SYSTEMS. William Stallings

Number Representation

1. Give the 16 bit signed (twos complement) representation of the following decimal numbers, and convert to hexadecimal:

Number of bits needed to address hosts 8

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

Chapter Table & Graph

Digital Electronics Detailed Outline

Bachelors of Computer Application Programming Principle & Algorithm (BCA-S102T)

Binary, Hexadecimal, Octal, and BCD Numbers

This 3-digit ASCII string could also be calculated as n = (Data[2]-0x30) +10*((Data[1]-0x30)+10*(Data[0]-0x30));

Binary Number System. 16. Binary Numbers. Base 10 digits: Base 2 digits: 0 1

Two's Complement Adder/Subtractor Lab L03

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

Verilog - Representation of Number Literals

Calculator Notes for the TI-Nspire and TI-Nspire CAS

Copyright 2012 Pearson Education, Inc. Chapter 1 INTRODUCTION TO COMPUTING AND ENGINEERING PROBLEM SOLVING

A single register, called the accumulator, stores the. operand before the operation, and stores the result. Add y # add y from memory to the acc

HP Service Virtualization

4.3 TABLE 3 TABLE five

Graphing Calculator Workshops

Cyber Security Workshop Encryption Reference Manual

fx-100au User's Guide

Classful Subnetting Explained

Creating Visualizations. Qlik Sense 1.1 Copyright QlikTech International AB. All rights reserved.

Chapter 4. IP Addresses: Classful Addressing

Number Systems. Introduction / Number Systems

28 Simply Confirming Onsite

2.2: Bitwise Logical Operations

Roman Numerals. Symbol Decimal Value I One (1) V Five (5) X Ten (10) L Fifty (50) C Hundred (100) D Five Hundred (500) M Thousand (1000)

2.3 IPv4 Address Subnetting Part 2

Classless Subnetting Explained

I PUC - Computer Science. Practical s Syllabus. Contents

Memory is implemented as an array of electronic switches

The Answer to the 14 Most Frequently Asked Modbus Questions

Japannext PTS ITCH Market Data Specification. Version 1.4 Updated 3 October 2014

SCIENTIFIC CALCULATOR OPERATION GUIDE. <W Series>

Content Map For Career & Technology

Sistemas Digitais I LESI - 2º ano

fx-85w fx-85wa fx-300w fx-350tl User s Guide Guía del usuario Mode d emploi Bedienungsanleitung Guida dell utilizzatore

Transcription:

Chapter 5 Binary, Octal, Decimal, and Hexadecimal Calculations This calculator is capable of performing the following operations involving different number systems. Number system conversion Arithmetic operations Negative values Bitwise operations 5-1 Before Beginning a Binary, Octal, Decimal, or Hexadecimal Calculation with Integers 5-2 Selecting a Number System 5-3 Arithmetic Operations 5-4 Negative Values and Bitwise Operations

5-1 Before Beginning a Binary, Octal, Decimal, or Hexadecimal Calculation with Integers You can use the RUN Mode and binary, octal, decimal, and hexadecimal settings to perform calculations that involve binary, octal, decimal and hexadecimal values. You can also convert between number systems and perform bitwise operations. You cannot use scientific functions in binary, octal, decimal, and hexadecimal calculations. You can use only integers in binary, octal, decimal, and hexadecimal calculations, which means that fractional values are not allowed. If you input a value that includes a decimal part, the unit automatically cuts off the decimal part. If you attempt to enter a value that is invalid for the number system (binary, octal, decimal, hexadecimal) you are using, the calculator displays an error message. The following shows the numerals that can be used in each number system. Binary: 0, 1 Octal: 0, 1, 2, 3, 4, 5, 6, 7 Decimal: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Hexadecimal: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F The alphabetic characters used in the hexadecimal number appear differently on the display to distinguish them from text characters. Normal Text Hexadecimal Values A B C D E F u v w x y z Keys Negative binary, octal, and hexadecimal values are produced using the two s complement of the original value. The following are the display capacities for each of the number systems. Number System Binary Octal Decimal Hexadecimal Display Capacity 16 digits 11 digits 10 digits 8 digits 74

Before Beginning a Binary, Octal, Decimal, or Hexadecimal Calculation with Integers 5-1 The following are the calculation ranges for each of the number systems. Binary Values Positive: 0 < x < 111111111111111 Negative: 1000000000000000 < x < 1111111111111111 Octal Values Positive: 0 < x < 17777777777 Negative: 20000000000 < x < 37777777777 Decimal Values Positive: 0 < x < 2147483647 Negative: 2147483648 < x < 1 Hexadecimal Values Positive: 0 < x < 7FFFFFFF Negative: 80000000 < x < FFFFFFFF uto perform a binary, octal, decimal, or hexadecimal calculation 1. In the main menu, select RUN. P.5 2. Press!Z and then specify the defalut number system by pressing 2 (Dec), 3 (Hex), 4 (Bin), or 5 (Oct). 3. Press J to change to the screen for calculation input. This causes a function menu with the following items to appear. {d~o}/{log}... {number system specification}/{bitwise operation} menu 75

5-2 Selecting a Number System You can specify decimal, hexadecimal, binary, or octal as the default number system using the set up screen. After you press the function key that corresponds to the system you want to use, press w. uto convert a displayed value from one number system to another Example To convert 2210 (default number system) to its binary or octal value A!Z2(Dec)J1(d~o)1(d) ccw!z4(bin)jw!z5(oct)jw uto specify a number system for an input value You can specify a number system for each individual value you input. While binary, octal, decimal, or hexadecimal is set as the default number system, press 1 (d~o) to display a menu of number system symbols. Press the function key that corresponds to the symbol you want to select and then input the value you want. {d}/{h}/{b}/{o}... {decimal}/{hexadecimal}/{binary}/{octal} uto input values of mixed number systems Example To input 12310 or 10102, when the default number system is hexadecimal!z3(hex)j A1(d~o)1(d)bcdw 3(b)babaw 76

5-3 Arithmetic Operations Example 1 To calculate 101112 + 110102!Z4(Bin)J Ababbb+ bbabaw Example 2 To input and execute 1238 ABC16, when the default number system is decimal or hexadecimal P.74!Z2(Dec)J A1(d~o)4(o)bcd* 2(h)ABCw!Z3(Hex)Jw 77

5-4 Negative Values and Bitwise Operations While binary, octal, decimal, or hexadecimal is set as the default number system, press 2 (LOG) to display a menu of negation and bitwise operators. {Neg}... {negation}* 1 {Not}/{and}/{or}/{xor}/{xnor}... {NOT}* 2 /{AND}/{OR}/{XOR}/{XNOR}* 3 k Negative Values Example To determine the negative of 1100102!Z4(Bin)J A2(LOG)1(Neg) bbaabaw k Bitwise Operations Example 1 To input and execute 12016 and AD16 P.74!Z3(Hex)J Abca2(LOG) 3(and)ADw Example 2 To display the result of 368 or 11102 as an octal value!z5(oct)jj Adg2(LOG) 4(or)J1(d~o)3(b) bbbaw Example 3 To negate 2FFFED16 P.74!Z3(Hex)JJ A2(LOG)2(Not) cfffedw * 1 two s complement * 2 one s complement (bitwise complement) * 3 bitwise AND, bitwise OR, bitwise XOR, bitwise XNOR 78