How can I separate this number -51.235 in C program
===

I need to separate -51.235 which is in a file and put it as - , 51 , .235 my problem is that when I try to read it form the file and print it in code block i can put it as an int and float at the same time so i can subtract the int (51) and the float (51.235) and how can I separate the sign I put it as a character? this what i have so far 



if (comand == 'S')
       {

          fscanf(entrada, "%d %f",&y, &a);
          printf("\n\nthe separate number is: %d , %f",y,a); 
       }



and it give me: the separate number is: -51 , 0.235000 (how can I eliminate the 3 zeros at the end?)

in the note pad it show:

S -51.235