Commit 5fccf32a authored by Antoine Lucas's avatar Antoine Lucas
Browse files

tests with reduced precision on float values

parent bb15a324
Package: gmp
Version: 0.6-4
Date: 2022-02-23
Version: 0.6-5
Date: 2022-03-14
Title: Multiple Precision Arithmetic
Author: Antoine Lucas, Immanuel Scholz, Rainer Boehme <rb-gmp@reflex-studio.de>,
Sylvain Jasson <Sylvain.Jasson@inrae.fr>,
......
......@@ -40,7 +40,9 @@ test <- function(FUN, x, xlabs, out = "str", unary = FALSE)
## ## now, for some functions also compute the corresponding numeric values
## d <- if(unary) try(FUN(as.numeric(x[[j]])), silent = TRUE) else
## try(FUN(as.numeric(x[[i]]),as.numeric(x[[j]])), silent = TRUE)
if(length(e) > 0 && is.double(e[1]) ) {
e[1] = format(e)
}
res[i,j] <- sortie(e)[1]
}
res ## for printing, the user may prefer as.data.frame(.)
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment