r - R Limitation? A + B - A = B
问题描述
This is the image.
So basically a + b - a is supposed to be b but then it limit at 2^53, anyway to solve this? or is it the limit of R? or maybe the program I use?
解决方案
You can try as.bigz
from gmp
package
A <- gmp::as.bigz(2**53)
B <- 1
such that
> A+B-A
Big Integer ('bigz') :
[1] 1
推荐阅读
- javascript - 在 github 页面中托管 Angular SSR
- java - Hygieia Jenkins-Build Collector 不以 UnsatisfiedDependencyException 开头
- extract - 在名称未知的文件中查找数值序列的一部分
- swift - SwiftUI 实例化 @State 变量
- excel - 如何根据列中的最大值突出显示行(Excel)
- sql - SQL - 查找包含特定项目组合的销售订单
- mongodb - 如何使用 Presto 查询 MongoDB 中的嵌套字段
- nullpointerexception - 如何在服务中保留模拟数据
- cvxpy - cvxpy中的mosek参数设置
- java - LocalDateTime 解析抛出“java.lang.IllegalArgumentException:未知模式字母:T”