I am willing to cast precise operations and for that purpose I need a way to seperate a float number into an integer and a fractional part. Is there any way for this?
A thought crossed my mind to separate them with some logic :
#include using namespace std; int main() { double fr,i,in,num=12.7; for(i=0;i
Hope this was what you were searching for:) .