Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 1.75 -> 1-3/4
- X-seq: zsh-users 23444
- From: Emanuel Berg <moasen@xxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: 1.75 -> 1-3/4
- Date: Wed, 06 Jun 2018 19:48:17 +0200
- Cancel-lock: sha1:fmZExoPJYhf4pRwPkv3h4ZF+PsA=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mail-copies-to: never
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <8636y25hm7.fsf@zoho.com> <20180605223253.GA50167@CptOrmolo.darkstar>
Matthew Martin wrote:
> What comes to mind first for me is the
> following [...]
Great work, only it is too good (I call your
function ths-mm) - compare:
$ ths 1.75
1-3/4
$ ths 1.73
1-3/4
$ ths-mm 1.75
1 3/4
$ ths-mm 1.73
1 73/100
If you devide into hundreds, you might as well
use the much better decimal system, right?
Tho one thing that is clearly better with
ths-mm is no recursion...
--
underground experts united
http://user.it.uu.se/~embe8573
Messages sorted by:
Reverse Date,
Date,
Thread,
Author