如何综合一个数字到最接近的十个? [英] How to roundup a number to the closest ten?

查看:105
本文介绍了如何综合一个数字到最接近的十个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能标题不是非常暗示。



让我举个例子说明一下。我有:

  12345.6 
2345.1
12345.00000001
/ pre>

我希望这些号码综合到 12350

我该怎么办做这个?



如果可能,我宁愿使用公式而不是VBA。

解决方案

p>您还可以使用 CEILING ,其总数达到整数或所需的重要程度



ie

= CEILING(A1,10)

轮回到10的倍数



12340.0001 将成为 12350


Probably the title is not very suggestive.

Let me explain you with an example. I have:

12345.6 
2345.1
12345.00000001

I want those numbers to be roundup to 12350.
How can I do this?

If possible, I would rather use formulas instead of VBA.

解决方案

You could also use CEILING which rounds up to an integer or desired multiple of significance

ie
=CEILING(A1,10)
rounds up to a multiple of 10

12340.0001 will become 12350

这篇关于如何综合一个数字到最接近的十个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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