代码如下:
  double d = 8.95 - 8;
  cout << int(d * 60) << endl;
    输出:56,实际应该是57,好像是精度损失什么的,这种问题怎么解决?