[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 1.75 -> 1-3/4
From: |
tomas |
Subject: |
Re: 1.75 -> 1-3/4 |
Date: |
Tue, 5 Jun 2018 19:00:01 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, Jun 05, 2018 at 05:30:52PM +0200, Emanuel Berg wrote:
> tomas wrote:
>
> > scheme@(guile-user)> (inexact->exact 1.3333)
> > $7 = 3002324691586541/2251799813685248
> >
> > (yikes ;-) but...
>
> Ha ha :)
>
> > [1]
> > https://www.emacswiki.org/emacs/RationalNumber
>
> Did you try it and get it to work for 1.75 -> 1-3/4?
Well, as posted I'd expect 7/4, let's see...
scheme@(guile-user)> (rationalize (inexact->exact 1.75) 1/1000)
$1 = 7/4
So one'd need to muck around with floor and things...
Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlsWwZEACgkQBcgs9XrR2kZlNgCdHq55CXYx5hg2CWsNcVcKQ1uD
KgwAnRCvmdVs8jxmD/8nbnoZhShNljUt
=EDkQ
-----END PGP SIGNATURE-----
Re: 1.75 -> 1-3/4, Marko Vojinovic, 2018/06/05
Message not available
Message not available