MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / integer_width

Function integer_width

inst/include/Rcpp/internal/r_coerce.h:205–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205inline int integer_width( int n ){
206 return n < 0 ? ( (int) ( ::log10( -n+0.5) + 2 ) ) : ( (int) ( ::log10( n+0.5) + 1 ) ) ;
207}
208
209template <>
210inline const char* coerce_to_string<CPLXSXP>(Rcomplex x){

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected