Data Type Summary (Visual Basic) Visual Basic typeCommon language runtime type structure Nominal storage allocation Value range Boolean Depends on implementing.

Slides:



Advertisements
Similar presentations
Operators & Identifiers The Data Elements. Arithmetic Operators exponentiation multiplication division ( real ) division ( integer quotient ) division.
Advertisements

Lecture - 2 Number systems and computer data formats
IntroductionIntroduction  Computer program: an ordered sequence of statements whose objective is to accomplish a task.  Programming: process of planning.
©2004 Brooks/Cole Chapter 2 Variables, Values and Operations.
1 9/10/07CS150 Introduction to Computer Science 1 Data Types Section 2.7 – 2.12 CS 150 Introduction to Computer Science I.
Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Introduction.
1 Fundamental Data Types. 2 Declaration All variables must be declared before being used. –Tells the compiler to set aside an appropriate amount of space.
Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Introduction.
CS150 Introduction to Computer Science 1
Chapter 31 Fundamentals of Programming in VB(Continue I) Numbers Arithmetic Operations Variables Incrementing the Value of a Variable.
Chapter 2 Data Types, Declarations, and Displays
Fundamental data types Horstmann Chapter 4. Constants Variables change, constants don't final = ; final double PI = ; … areaOfCircle = radius *
Program A computer program (also software, or just a program) is a sequence of instructions written in a sequence to perform a specified task with a computer.
Programming Principles Data types and Variables. Data types Variables are nothing but reserved memory locations to store values. This means that when.
Binary Representation. Binary Representation for Numbers Assume 4-bit numbers 5 as an integer  as an integer  How? 5.0 as a real number  How?
Summer 2014 Chapter 1: Basic Concepts. Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Chapter Overview Welcome to Assembly Language.
Assembly Language for x86 Processors 7th Edition
Variable, Expressions, Statements and Operators By: Engr. Faisal ur Rehman CE-105 Fall 2007.
Information and Programs. Foundations of Computing Information –Binary numbers –Integers and Floating Point –Booleans (True, False) –Characters –Variables.
Lecture 2 Introduction to Computer Programming CUIT A.M. Gamundani Presentation Layout Data types.
Floating Point Representations CDA 3101 Discussion Session 02.
Lec 6 Data types. Variable: Its data object that is defined and named by the programmer explicitly in a program. Data Types: It’s a class of Dos together.
Lecture #5 Introduction to C++
Tutorial 6 Introducing Variables, Memory Concepts & Arithmetic.
Java Simple Types CSIS 3701: Advanced Object Oriented Programming.
Chapter 19 Number Systems. Irvine, Kip R. Assembly Language for Intel-Based Computers, Translating Languages English: Display the sum of A times.
Operators & Identifiers The Data Elements. Arithmetic Operators exponentiation multiplication division ( real ) division ( integer quotient ) division.
CHAPTER # 2 Part 2 PROGRAMS AND DATA 1 st semster King Saud University College of Applied studies and Community Service CSC1101 By: Asma Alosaimi.
1 Microsoft® Visual Basic®.NET Language # 1. 2 Variable Declaring Variable Dim {VariableName} As {Type} Dim {VariableName} As {Type} = {value} Example:
Compunet Corporation1 Programming with Visual Basic.NET Variables and Data Types Week # 2 Tariq Ibn Aziz.
Java Programming, Second Edition Chapter Two Using Data Within a Program.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
COMP Primitive and Class Types Yi Hong May 14, 2015.
Operators & Identifiers The Data Elements. Arithmetic Operators exponentiation multiplication division ( real ) division ( integer quotient ) division.
Lecture 3 Introduction to Computer Programming CUIT A.M. Gamundani Presentation Layout from Lecture 1 Background.
CSI 3125, Preliminaries, page 1 Data Type, Variables.
CIVIL AND GEOMATIC ENGINEERING FT Okyere. CIV 257- COMPUTER PROGRAMMING Lecture 3.
Introduction to Programming Lecture 2 Msury Mahunnah, Department of Informatics, Tallinn University of Technology.
Variables in VB.NET. Variables  A storage location in memory (RAM)  Holds data/information while the program is running  These storage locations can.
1.2 Primitive Data Types and Variables
Chapter One Lesson Three DATA TYPES ©
Murach, Chapter 4. Two Data Types Value Types – Store their own data Reference Types Do not store their own data Stores a reference to an area of memory.
A: A: double “4” A: “34” 4.
IT11004: Data Representation and Organization Floating Point Representation.
Data Types Always data types will decide which type of information we are storing into variables In C programming language we are having 3 types of basic.
COP2800 – Computer Programming Using JAVA University of Florida Department of CISE Spring 2013 Lecture 06 – Java Datatypes Webpage:
 Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory. 
DELTA TAU Data Systems, Inc. 1 UMAC TurboTurbo PMAC PCIGeo Drive Single Source Machine Control motion logic data Power PMAC Shared Memory December 2013.
A data type in a programming language is a set of data with values having predefined characteristics.data The language usually specifies:  the range.
Java Basics. Tokens: 1.Keywords int test12 = 10, i; int TEst12 = 20; Int keyword is used to declare integer variables All Key words are lower case java.
Data Types References:  Data Type:  In computer science and computer programming, a data type or simply type is a.
 Data Type is a basic classification which identifies different types of data.  Data Types helps in: › Determining the possible values of a variable.
Primitive Data Types. int This is the type you are familiar with and have been using Stores an integer value (whole number) between -2,147,483,648 (-2.
Fixed-point and floating-point numbers Ellen Spertus MCS 111 October 4, 2001.
Basic Data Types อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา Chapter 4.
1Object-Oriented Program Development Using C++ Built-in Data Types Data type –Range of values –Set of operations on those values Literal: refers to acceptable.
Java Programming Language Lecture27- An Introduction.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
Variable, Expressions, Statements and Operators By: Engr. Faisal ur Rehman CE-105 Fall 2007.
Introduction to Programming Lecture 2
Assembly Language for x86 Processors 6th Edition
Data Representation Binary Numbers Binary Addition
Chapter 6: Data Types Lectures # 10.
EPSII 59:006 Spring 2004.
Data Types The type states how much and what kind of data the variable can store. integers- whole numbers no fractional parts int, short, long floating.
Understand Computer Storage and Data Types
Java package classes Java package classes.
Review Operation Bingo
Data Types Imran Rashid CTO at ManiWeber Technologies.
Variables and Constants
Presentation transcript:

Data Type Summary (Visual Basic) Visual Basic typeCommon language runtime type structure Nominal storage allocation Value range Boolean Depends on implementing platform True or False Byte 1 byte0 through 255 (unsigned) CharChar (single character)Char2 bytes0 through (unsigned) DateDateTime8 bytes0:00:00 (midnight) on January 1, 0001 through 11:59:59 PM on December 31, 9999 Decimal 16 bytes0 through +/- 79,228,162,514,264,337, 593,543,950,335 (+/ E+28) † with no decimal point; 0 through +/ with 28 places to the right of the decimal; smallest nonzero number is +/ (+/-1E-28) †

DoubleDouble (double-precision floating-point) Double8 bytes E+3 08 through E- 324 † for negative values; E- 324 through E+3 08 † for positive values IntegerInt324 bytes-2,147,483,648 through 2,147,483,647 (signed) LongLong (long integer)Int648 bytes- 9,223,372,036,854,775,808 through 9,223,372,036,854,775,807 (9.2...E+18 † ) (signed) Object Object (class)4 bytes on 32-bit platform 8 bytes on 64-bit platform Any type can be stored in a variable of type Object SByte 1 byte-128 through 127 (signed) ShortShort (short integer)Int162 bytes-32,768 through 32,767 (signed) SingleSingle (single-precision floating-point) Single4 bytes E+38 through E-45 † for negative values; E-45 through E+38 † for positive values StringString (variable-length)StringString (class)Depends on implementing platform 0 to approximately 2 billion Unicode characters

UIntegerUInt324 bytes0 through 4,294,967,295 (unsigned) ULongUInt648 bytes0 through 18,446,744,073,709,551,61 5 (1.8...E+19 † ) (unsigned) User-DefinedUser-Defined (structure)(inherits from ValueType)ValueTypeDepends on implementing platform Each member of the structure has a range determined by its data type and independent of the ranges of the other members UShortUInt162 bytes0 through 65,535 (unsigned)