博客
关于我
温度转换
阅读量:395 次
发布时间:2019-03-05

本文共 403 字,大约阅读时间需要 1 分钟。

2013夏季,全球范围内的温度都很高,美国甚至有地区达到100华氏度,而宁波的温度也经常超过40摄氏度。很多人可能会好奇,哪种温度更高一些。其实,这取决于你使用的是哪种温度尺度。为了比较这两种温度,我们可以通过转换公式来将华氏温度转换为摄氏温度。

输入一个华氏温度值(浮点数)。

输出对应的摄氏温度值,结果要求保留2位小数。

输入样例:100

输出样例:37.78

我们可以使用以下公式进行转换:[ c = \frac{5 \times (f - 32)}{9} ]其中,( c ) 表示摄氏温度,( f ) 表示华氏温度。

例如,当输入为100华氏度时,计算过程如下:[ c = \frac{5 \times (100 - 32)}{9} = \frac{5 \times 68}{9} = \frac{340}{9} \approx 37.78 ]

所以,100华氏度对应的摄氏温度是37.78摄氏度。

转载地址:http://ovszz.baihongyu.com/

你可能感兴趣的文章
org.hibernate.HibernateException: Unable to get the default Bean Validation factory
查看>>
org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
查看>>
org.springframework.boot:spring boot maven plugin丢失---SpringCloud Alibaba_若依微服务框架改造_--工作笔记012
查看>>
SQL-CLR 类型映射 (LINQ to SQL)
查看>>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
查看>>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
查看>>
org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded
查看>>
org.tinygroup.serviceprocessor-服务处理器
查看>>
org/eclipse/jetty/server/Connector : Unsupported major.minor version 52.0
查看>>
org/hibernate/validator/internal/engine
查看>>
Orleans框架------基于Actor模型生成分布式Id
查看>>
SQL-36 创建一个actor_name表,将actor表中的所有first_name以及last_name导入改表。
查看>>
ORM sqlachemy学习
查看>>
Ormlite数据库
查看>>
orm总结
查看>>
os.environ 没有设置环境变量
查看>>
os.path.join、dirname、splitext、split、makedirs、getcwd、listdir、sep等的用法
查看>>
os.removexattr 的 Python 文档——‘*‘(星号)参数是什么意思?
查看>>
os.system 在 Python 中不起作用
查看>>
OS2ATC2017:阿里研究员林昊畅谈操作系统创新与挑战
查看>>