From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110074 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jairo A. del Rio" Newsgroups: gmane.comp.tex.context Subject: About xdecimal Date: Mon, 28 Dec 2020 08:33:22 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5515323337442421464==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26968"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 28 14:33:58 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktser-0006pX-CK for gctc-ntg-context-518@m.gmane-mx.org; Mon, 28 Dec 2020 14:33:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 607301C170A; Mon, 28 Dec 2020 14:33:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fmhYpEDd3AP0; Mon, 28 Dec 2020 14:33:36 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 89EF41C1628; Mon, 28 Dec 2020 14:33:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F244F1C162A for ; Mon, 28 Dec 2020 14:33:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hgVxbuQMNlV7 for ; Mon, 28 Dec 2020 14:33:34 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.47; helo=mail-wr1-f47.google.com; envelope-from=jairoadelrio6@gmail.com; receiver= Original-Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 7390A1C1545 for ; Mon, 28 Dec 2020 14:33:34 +0100 (CET) Original-Received: by mail-wr1-f47.google.com with SMTP id t30so11373855wrb.0 for ; Mon, 28 Dec 2020 05:33:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=zVOFZYoMWnvd2WbxyY/3f1wnckyqoyu1r4bJ2YMgD2E=; b=oQuAsBf8gGSGfoHb8fs7oRDPmCEPEwr1lUvZfqnAbt9+08rCI2gB5P7EcldbujRoqf LzK0ZXJwakZ7SdXucNb1CGJosVsswBFJmZOYWmjx2FoaGtrVWLFymecrXpEbIrAipOkP Yt+52VcORLVQBynFzHzuWhunAWKOJe24qqRmjW6SpMwOdewiTRVqyaQoTfBCzpRMGYzu UEP3oHnaCE60qnManHrjf0AnGiHA9qcAVCiGjbURNkswQ/nQInBfdT94Z2KB0e6q2UQP V96hsrBA6/b/c5H84mzSZ/d518tAe7kkCQex9kxSi76E5whgeaOd3G0ukluvTg8O3QTI AY1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zVOFZYoMWnvd2WbxyY/3f1wnckyqoyu1r4bJ2YMgD2E=; b=sNqZqpk7QjFAq33lVyGu0uxZJU1DAbjGc9w3rmgD7zhWD1OPbCma24DzSN3UgDDsr4 syIbqU+6NvOR+h2sK7UxHNuGkM00pspuWRNNN7kY7YrjnrKa5YjcPpjNUSkzivhSvv5m 1kKJzzuR68JB6S/8GrHDxYpHNcylt58ZvgsOzcADR316Cuvym4JAjhX0XVKg0UfzlDlB N03Z48H+Xyl+h8WzqHvJXmzaH+8Vm0Xg1ve0WO1B09dkJDzhMtf4GKkdSu/Z77TSCx3u fGnyDjjFSu8ZOLBFa7KOD+2BcSnw2SeX1zfRa1Y2IdpnXGHb0fmHg4dxr/kaDw7cl4bt OTwA== X-Gm-Message-State: AOAM531c1E8S6jB5dJnlhzvUBLZ+1fa83kDnAEoNn+5G5a6hAZoUtdLj plaO74i/wY06FmyLQNadp8me+2a70TwCY1Fq8hcFcXTl+wQ= X-Google-Smtp-Source: ABdhPJz39FEsr/zXZd5j7exk5d4qiN/5S+KFd0DkPUCG4Uh4sdAcptqT773Lw5eWv3CDdzYhrRTt/RPJqUSf1B3LOFU= X-Received: by 2002:adf:ba47:: with SMTP id t7mr50429732wrg.285.1609162413746; Mon, 28 Dec 2020 05:33:33 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:110074 Archived-At: --===============5515323337442421464== Content-Type: multipart/alternative; boundary="0000000000000eadeb05b7865262" --0000000000000eadeb05b7865262 Content-Type: text/plain; charset="UTF-8" Hi, list. I've tried using the xdecimal library included with LuaMetaTeX and I have some remarks: 1. Shifts are decimal, not binary: 145 >> 1 gives 14. 2. Integer division (//) is not implemented. Is that by design? 3. Following 2, what would be the way to handle integer division, remainder... for large numbers? Thank you in advance. Best regards, Jairo --0000000000000eadeb05b7865262 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, list.

= I've tried using the xdecimal library included with LuaMetaTeX and I ha= ve some remarks:

1. Shifts are decimal, not binary: 145 >&g= t; 1 gives 14.
2. Integer division (//) is not implemented. Is tha= t by design?
3. Following 2, what would be the way to handle integ= er division, remainder... for large numbers?

Thank you in adva= nce.

Best regards,

Jairo
--0000000000000eadeb05b7865262-- --===============5515323337442421464== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5515323337442421464==--