Program to print fractional and integer part of a floating point
======== INTEGER PART AND FRACTIONAL PART===========
a=input("Enter The Floating Point Number :")
f=a%1
i=a//1
print "Integer Part is :",i
print " Fractional Part is :",f
================ OUTPUT ==========================
Enter The Floating Point Number12.458
Integer Part is : 12
Fractional Part is : 0.458
===================================================
No comments