[NTG-context] About xdecimal

Hans Hagen j.hagen at xs4all.nl
Mon Dec 28 16:39:45 CET 2020


On 12/28/2020 2:33 PM, Jairo A. del Rio wrote:
> 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.

this is how decnumber defines shift: digits

> 2. Integer division (//) is not implemented. Is that by design?

i'll add that one

> 3. Following 2, what would be the way to handle integer division, 
> remainder... for large numbers?

i'll add a % b

> Thank you in advance.
better first do the testing

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list