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 - .-.. // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///