as.numeric | R Documentation |
Coerces an object of class brob
to numeric, or an object of
class glub
to complex
x |
Object of class |
... |
Further arguments (currently ignored) |
Function as.numeric()
coerces a brob
to numeric; if given
a glub
, the imaginary component is ignored (and a warning given).
Function as.complex()
coerces to complex.
If |x| is greater than
.Machine$double.xmax
, then as.numeric(x)
returns
Inf
or -Inf
but no warning is given.
Robin K. S. Hankin
a <- as.brob(1:10) a <- cbrob(a, as.brob(10)^1e26) a as.numeric(a) as.complex(10i + a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.