//Example 5.5 clc //clears the command window clear //clears all the variables format('v',18) //increasing the precision n=32; // given 32 1's dec=2^n - 1 ; printf("The decimal equivalent of 32 bit number with all 1s is = %f ",dec); // displaying the result