Knowing more about Visual Basic 2015 and Data Types

Asked By 20 points N/A Posted on -
qa-featured

Hi!

I would like to know what are the data types that I can use in Visual Basic 2015? What is “Long” and “Single”? What are the ranges of its value? Can a string contain numbers and characters? What about integer? Can it contain both number and character also? What is double? What are the ranges of double type? What does it represents? What is Boolean type? What values we can store with this data type? How is it implemented? Can you help me with this?

Thank you!

SHARE
Answered By 0 points N/A #173808

Knowing more about Visual Basic 2015 and Data Types

qa-featured

Hello Rebecca!

Just a quick introduction to data types, Data types describe the information that a variable stores.

Here are the data types that we can use in Visual Basic 2015

1. Byte, Boolean, Currency, Date, Double, Integer, Long, Object, Single, String and Variant.

Long (ranges -2147483648/2147483647) – stores whole integer or number that can have greater value than integer.

Single (ranges – 3.402823E38 to -1.401298E-45/reciprocal values) – single precision floating-point number.

String can contain both characters numbers. In String it is only read as symbol nothing more. In Integer data type, only the numerical value is measured. So in Integer you can only accept whole numbers, nothing more.

Double (ranges – -1.797693134623E308 to -4.94065645841247E-324/reciprocal values) – represents double precision floating point numbers.

Boolean (ranges – True or False/0 and 1) – can handle true or false values only or in computer systems 1’s and 0’s. To declare this just use – Dim valueTO as Boolean.

Related Questions