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
#questiontypes of lines and how to draw

MULTIPLE DOCUMENT INTERFACE (MDI) WINDOWS   The SDI (Single document interface) supports one open window or document at a particular time. Microsoft's notepad and paint are il

A For Each...Next loop is similar to a For...Next loop. Rather than repeating the statements a particular number of times, For Each...Next loop repeats group of statements for each

You can exit a Do...Loop using the Exit Do statement. Since usually you desire to exit only in certain situations, such as to ignore an endless loop, you should employ the Exit Do

FEATURES OF USER INTERFACE DESIGN The features like how will the software's are used? Who will be the users? What will be the life of the software? During its lifetime how ofte

GDI OBJECTS   The CDC provides 5 versions for the GDI objects. They are fonts, brushes, pens, bitmaps and regions. The Select Object function substitutes the current GDI objec

Benefits of Using DLLs: The dynamic linking has the following advantages which are as shown below: It saves memory and decreases the swapping. Many processes can use a s

translate''Q''for insert into element and''Q''delete for deletion element into programming language

A triangle is equilateral if all three sides are equal, isosceles if any two (but no more than two) sides are equal, and scalene if no two sides are equal. A triangle will be input

Explain difference, Generic Variable: Create Object Ex:-Ole-Automation . No need refer the object library. What is Specific Variable: Binding Procedure Early & Late Binding ( Can