binary_string_to_rational: Convert a binary string to its rational representation

View source: R/carithmetic.R

binary_string_to_rationalR Documentation

Convert a binary string to its rational representation

Description

Convert a binary string to its rational representation

Usage

binary_string_to_rational(binary_string)

Arguments

binary_string

A string representing a binary number, which may include a fractional part.

Value

A list containing the floating-point approximation, numerator, and denominator of the rational number.


ddarmon/MUsaic documentation built on June 19, 2024, 6:43 p.m.