Numeric data types - visual basic, Visual Basic Programming

Numeric data types:

The Integer, long integer are used for entire numbers. Single and doubles are related with the floating point numbers. Currency is related with numbers dealing with money. The code below describes the 5 different numeric data types and their effect. An Integer can store upto 32767 only. Trying to store a value ahead of 32767 will result in an overflow error.

The variable a is of type Single. Whenever 8.97655467787088 is stored in a, the actual value stored would be the 8.976555 only. When the data type is Single and the value stored is 100000000 it would be demonstrated as 1E+08 using Scientific notation. Whenever the data type is Currency and the value stored is 100000000 it would be displayed as 100000000.

These are the 5 different numeric data types existed in the VB.

Posted Date: 10/9/2012 8:13:09 AM | Location : United States







Related Discussions:- Numeric data types - visual basic, Assignment Help, Ask Question on Numeric data types - visual basic, Get Answer, Expert's Help, Numeric data types - visual basic Discussions

Write discussion on Numeric data types - visual basic
Your posts are moderated
Related Questions
Please help me.. I am loading data from a text file to a class (Item Inventory from Tony Gaddis - Visual Basic - Chapter 12 -programming challange# 7-9) and the last item loaded is

This is from the book Programming in Visual Basic 2010 by Julia Case Bradley and Anita C. Millspaugh. The assignment is located in Chapter 3 on page 154. Before I type it in, I wou

You can control the flow of your script with conditional statements & looping statements.  By using conditional statements, you can write VBScript code which makes decisions and re

#question.algorithemtofindwhetheragivennumberisprime/not.

need general help in pseudo code

Device Contexts: The Device Context (DC) is represented by the data type Handle to Device Context (HDC). The HDC is a handle to somewhat you can draw on; it can be the whole s

Deleting Handlers With Class Wizard: The handler can be deleted by using the class wizard. The class wizard will delete the prototype and message map entry. The user should ma

To run only one statement while a condition is True, employ the single-line syntax for the If...Then...Else statement. The following instance shows the single-line syntax. Notice t

Just like normal objects Dictionary object also has definite properties. These properties can be set to any valid value & can be retrieved as and while required. Pr

HOW TO SOLVE ORDINARY DIFFERENTIAL EQUETION IN VISUAL BASIC PROGRAMMING