Prévia do material em texto
Step 1 of 2 9.022E The fixed point number is having fixed number of digits after decimal point. Therefore, the highest and lowest number represented in this format is as follows: Highest number = 99999.99999 lowest number = 00000.00001 The floating point number is having variable number of digits after decimal point. It is represented as two parts. One is mantissa and the other is exponent. Therefore, the highest and lowest number represented in this format is as follows: 9.999999e+50 and 0.000001e-49 Here different floating type format is used to see how a floating point format differs from fixed. Step 2 of 2 The C programming is as follows, #include #include #include void main() { double y; clrscr(); printf("enter the fixed point value: "); printf(" the input fixed point value is %f %10.2f printf(" the floating point value: %e",y); getch(); }