Excel fractions miscalculated

不羁岁月 提交于 2019-12-10 20:58:56

问题


I'm trying to calculate screen ratios in Excel. I have a column with x and y, an example of what I'd expect from the calculated ratio column is:

 x    | y    | ratio
 1920 | 1080 | 16/9

but by using the formula =x/y and formatting the ratio column as a fraction I get:

 x    | y    | ratio
 1920 | 1080 | 17/9

I assume this is something to do with rounding error, but is there any way around this, in order to show accurate screen resolution ratios?


回答1:


@pnuts is right. You can change the output by using a custom format. Right click on the cell and choose format. Then use the following custom numbering.



来源:https://stackoverflow.com/questions/19007031/excel-fractions-miscalculated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!