如何转换十进制数时间,反之亦然 [英] How to Convert decimal number to time or vice versa

查看:122
本文介绍了如何转换十进制数时间,反之亦然的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是一个例子。



 如果8.30是存在的,应该在8小时30分钟
如果有8个小时20分钟后8.20

请告诉是否有可能?如果是
怎么样?


解决方案

当人们谈论的十进制小时,他们通常是指0.1 = 6分钟。



所以,正确的公式转换成8.3将是:



8小时+ 3 *6分钟= 8 :18



要转换8:20到十进制将是:



8 + 20/6 = 8.333333 (可能是轮8.3)


here is an example

            if 8.30 is there it should be 8 hours 30 minute
            if 8 hour 20 minutes  then 8.20  

           Please tell whether it is possible ? if yes
           how ?

解决方案

When people talk about decimal hours, they usually mean 0.1 = 6 minutes.

So, the correct formula to convert 8.3 would be:

8 hours + 3 * 6 minutes = 8:18

To convert 8:20 to decimal it would be:

8 + 20/6 = 8.333333 (probably round to 8.3)

这篇关于如何转换十进制数时间,反之亦然的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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