R 轮指数数

标签 r rounding stat

我只是想将 R 数字舍入为:

> round(1.327076e-09)

我希望它能带来结果

> 1.33e-09

但是结果

> 0

可以使用哪些功能?

最佳答案

尝试signif :

enter image description here

> signif(1.326135235e-09, digits = 3)
[1] 1.33e-09

关于R 轮指数数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5675556/

相关文章:

r - 仅转置 data.frame 中的某些列

swift - 始终显示 $

java - 四舍五入至小数点后 2 位

c++ - 统计()失败 : No such file or directory

macos - 苹果电脑 : Lack of --printf for stat

r - 根据特定的值序列创建子集

c++ - 在迭代算法中使用 Rcpp 来加速替换列表和 vector 的元素是否合法?

r - 来自并行包的 clusterMap - 迭代多个参数

python - 'depending on rounding' 到底是什么意思?

linux - 如何使用 'find' 命令显示修改后的日期时间?