更新时间:2023-02-09 20:36:34
您可以创建自己的:
d <- structure( list(i=589L,exp=2L), class="decimal" )
print.decimal <- function( x, ...) print( x$i * 10^(-x$exp) )
> d
[1] 5.89
实际上,某些大型软件包也可能适用于此,因为它们使用类似的表示方式....
Actually, some of the big number packages may work for this as well, since they use a similar representation....