CheckPrecision: Metadata functions

25-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 April 13, 2025, 5:08 p.m.