
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

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

On 12/28/2020 4:46 PM, Jairo A. del Rio wrote:
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Jairo A. del Rio