Round off the value that depends on the first significant digit of the uncertainty
2 answers
How about a simple one:
val <- x + c(-1,1)*y
val
[1] 0.248877 0.263723
round(val, digits = 4)
[1] 0.2489 0.2637
Or there could be another way:
x + c(-1, 1)* round(y, 3)
[1] 0.2493 0.2633
I believe it depends on what level of precision you need and which items ( x
or y
) may or may not be rounded.
+1
source to share