show_bits: Show a representation of the bits in a numeric value

Description Usage Arguments Details

View source: R/show-bits.R

Description

Show a representation of the bits in a integer or floating point value

Usage

1
2
3
4
5
6
7
## S3 method for class 'double'
show_bits(x, ...)

## S3 method for class 'integer'
show_bits(x, nbits = 32, ...)

show_bits(x, ...)

Arguments

x

double or integer value

...

other arguments passed to specific implementations

nbits

number of bits to dispaly if showing an integer

Details

Bits are always show with the most-significant bit on the left.

For floating point numbers (i.e. 'doubles') the display is similar to the seven31https://github.com/ThinkR-open/seven31 package.


coolbutuseless/exhibitionist documentation built on Nov. 4, 2019, 9:12 a.m.