使用第32个标尺转换分数中的十进制值 [英] convert decimal value in fraction using the 32nd ruler

查看:76
本文介绍了使用第32个标尺转换分数中的十进制值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请使用第32个标尺测量分数中的转换小数值吗?



如果您能为我提供编码,那将是您的最佳选择。



谢谢!!

Can you please advise for convert decimal value in fraction using the 32nd ruler for measurement??

It would be grate if you can provide me coding for it.

Thank you!!

推荐答案

我想你想找到32英寸的最佳分数对于给定的值。

- 得到你的价值:说0.7

- 乘以32:0.7 * 32 = 22.4

- 舍入到最近整数:22

你的分数是22/32

之后你可以通过用最大的公共分频器除以每个部分来减少分数:GCD(22,32)= 2

减少的分数为:(22/2)/(32/2)= 11/16
I guess you want to find the best fraction in 32nd of inch for a given value.
- Get your value: say 0.7
- Multiply by 32: 0.7 * 32 = 22.4
- round to closest integer: 22
your fraction is 22/32
after that you can reduce the fraction by dividing each part with the greatest common divider: GCD(22, 32) = 2
Reduced fraction is: (22/2) / (32/2) = 11/16


这篇关于使用第32个标尺转换分数中的十进制值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆