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 -----------------------------------------------------------------