function [c,temp,x4]=num2str(x)
    if(x<0)  then
temp=[45];
else
    temp=[];
end
    x=abs(x);
   x1=floor(x);
   temp1=x1;
   temp2=[];
    for i=1:10
       x2= floor(temp1/10);
       if (x2==0) then
          
       
       temp2=[temp2 temp1+48]
       break;
   else
        x3=temp1-x2*10;
        temp2=[temp2 x3+48];
        temp1=x2;
        end   
       
end
x4=x-x1;
temp3=x4;
temp4=[]
if (x4>0) then
    temp4=[temp4 46];
    for k=1:10
       x5=floor(temp3*10);
      temp4=[temp4 48+x5];
      x6=temp3*10-x5;
      if x6==0 then
          break;
      end
     
       
            
    end
end







 for i=length(temp2):-1:1
         temp=[temp temp2(i)]; 
        end
        temp=[temp temp4]
 c=char(temp);
 
 
endfunction
