Wednesday, April 14, 2010

DIFFERENCE BETWEEN INTEGER AND FLOATING POINT DATA TYPE


Integer
Floating point
An integer is an integer valued number.
A floating point is a decimal number that contains a decimal point or an exponent or both.
Integer data type can be written in three deferent number systems: decimal, octal, and hexadecimal.
Floating point data type can be written only decimal number system.
Integer data types require memory 2 bytes.
Floating point data types require memory 4 bytes.
Any combination of digit from the set 0 through 9 consist Integer data type.
A decimal or exponent must be present in floating point data type.
Example : 1254,789 etc.
Example: 3.2/9.58e*05 etc.

10 comments em “DIFFERENCE BETWEEN INTEGER AND FLOATING POINT DATA TYPE”

Post a Comment

Give your valuable Comment...

 

Programming, Data Structures & Algorithms Copyright © 2011 -- Template created by JAK -- Powered by Blogger