Saturday, June 21

Description of FLOATING POINT AND OTHER USEFUL CONSTANTS


Positive or negative numbers can be represented in some decimal point data or rather say in some exponential form. The floating point constant can be represented by (mantissa) followed by letter E and with e (the exponent)
Examples
9010E107810.11E-11 etc
(i) Floating point data type: The numbers which represented or stored in the floating point representation with binary mantissa and exponent are known as floating point numbers. They are declared as ‘float’ in C++.
(ii) Double data type : ‘double’ is a keyword to represent double floating point numbers in C++. The size of ‘double’ is a rational number in the same range as float and is stored in the form of floating point representation with binary mantissa and exponent.
The typical floating point types and its sizes in C++ are given as :
Float ----- size is 4 bytes
Double --- size is 8 bytes
Long double -- size is 12 or 16 bytes
The Hex constants are numbers from 0 to 9 and A to F with a base of 16……….
The Octal constants have base 8. They are represented by numbers 0 to 7.
The unsigned data type can be a char, integer, short integer, long integer. For short integer size is 16 bits, for long integer size is 32 bits……As now I am tired of writing I will teach you further topics in my next posts…till then its goodbye from me…………

0 comments:

Followers

Archive

 

Money ,Entertainment and Education. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com