怎么输出值变为六位小数?
#include <stdio.h>
int getmMile(int hour,int mile )
{ int money;
if(mile<=3)
{ money=13;}
else
{ if(hour>=23&&hour<5)
{ money=13+(hour-3)*(2.3*1.2);
}
else
{money=13+(hour-3)*2.3;
}
}
}
int main()
{ int money1=geymMile(9,12)+1;
int money2=getmMile(6,12)+1;
printf("%d %d",money1,money2);
return 0;
}