CheckPrecision: Metadata functions

24-Check precisionR Documentation

Metadata functions

Description

Checks the precision of a given MPCR object.

Usage


## S4 method for signature 'Rcpp_MPCR'
MPCR.is.single(x)
## S4 method for signature 'Rcpp_MPCR'
MPCR.is.half(x)
## S4 method for signature 'Rcpp_MPCR'
MPCR.is.double(x)
## S4 method for signature 'Rcpp_MPCR'
MPCR.is.float(x)

Arguments

x

An MPCR object.

Value

Boolean indicates the precision of the object according to the used function.

Examples

  library(MPCR)
  x <- as.MPCR(1:20,precision="double")
  MPCR.is.double(x) #TRUE
  MPCR.is.single(x) #FALSE

MPCR documentation built on Aug. 23, 2026, 5:10 p.m.

Related to CheckPrecision in MPCR...