Hello,
Am 07.01.23 um 17:55 schrieb Ivan Krylov:
> What do you need the fractions for?
>
When writing tasks for statistics exams, I try to avoid non-terminal
intermediate results. Students might round them and arrive at a final
result that might be slightly different from the true value. Altho
On Sat, 07 Jan 2023, Sigbert Klinke writes:
> Hi,
>
> has someone experience which routine should be used for
> creating fractional numbers? The two conversion
> routines deliver different results
>
>> x <- (0:7)/7
>
>> MASS::fractions(x)
>
> [1] 0 1/7 2/7 3/7 4/7 5/7 6/7 1
>
>> gmp::as.bigq(x
On Sat, 7 Jan 2023 17:29:35 +0100
Sigbert Klinke wrote:
> > x <- (0:7)/7
>
> > MASS::fractions(x)
>
> [1] 0 1/7 2/7 3/7 4/7 5/7 6/7 1
>
> > gmp::as.bigq(x)
>
> Big Rational ('bigq') object of length 8:
>
> [1] 0
> 2573485501354569/18014398509481984 2573485501354569/900719925474
Hi,
has someone experience which routine should be used for creating
fractional numbers? The two conversion routines deliver different results
> x <- (0:7)/7
> MASS::fractions(x)
[1] 0 1/7 2/7 3/7 4/7 5/7 6/7 1
> gmp::as.bigq(x)
Big Rational ('bigq') object of length 8:
[1] 0
2573485
4 matches
Mail list logo