lofi_to_fp: Unpack a floating point value into a list

Description Usage Arguments Value

View source: R/lofi-dbl.R

Description

Assumes LSB is in the 32 or 64 bit of the representation

Usage

1
2
3
4
5
6
7
8
9
lofi_to_fp(lofi, float_bits)

dbl_to_fp(dbl)

fp_to_dbl(fp)

fp_to_lofi(fp)

change_format_fp(fp, float_bits = c(1, 8, 7))

Arguments

lofi

floating point number. stored as bits in a a single R integer

float_bits

length (in number of bits) of sign, exponent and mantissa.

dbl

64 bit R floating point real

fp

named list

Value

Return a named list with elements sign, exponent and mantissa


coolbutuseless/lofi documentation built on Nov. 4, 2019, 9:13 a.m.