[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 1.75 -> 1-3/4
From: |
Teemu Likonen |
Subject: |
Re: 1.75 -> 1-3/4 |
Date: |
Tue, 05 Jun 2018 16:18:23 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) |
Emanuel Berg [2018-06-05 15:01:33+02] wrote:
> Did anyone do the equivalent of this ("ths" zsh below) in Elisp or any
> other Lisp?
Common Lisp has RATIONAL and RATIONALIZE functions which convert real
numbers to rational numbers. See the specification:
http://www.lispworks.com/documentation/HyperSpec/Body/f_ration.htm
"Decimals" library for Common Lisp can parse a decimal number string and
convert it to a rational number. See function PARSE-DECIMAL-NUMBER:
https://github.com/tlikonen/cl-decimals
--
/// Teemu Likonen - .-.. <https://keybase.io/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///
signature.asc
Description: PGP signature
- 1.75 -> 1-3/4, Emanuel Berg, 2018/06/05
- Re: 1.75 -> 1-3/4,
Teemu Likonen <=
- Message not available
Re: 1.75 -> 1-3/4, Marko Vojinovic, 2018/06/05
Message not available
Message not available