This document describes MINT (Multiple Precision Integer Arithmetic Subroutine), a program library for handling very large integers within DECUS systems.
Here's a summary of its key features:
MINT.RL file to be loaded.MPREC routine. While the default maximum is 11 words, it can be significantly increased (e.g., to 443 words for 1599 decimal digits) by modifying and reassembling the MINT source code, with a noted impact on core memory and execution time.Routine Set: The library offers a comprehensive set of functions including:
MADD), Subtraction (MSUB), Multiplication (MMPY), Division (MDIV).MCOM), Absolute value (MABS), Sign checking (MSGN), Bit shifts (MSCR, MSCL), Remainder (MREM).MSTO), Changing input/output base (MBAS), Reading integers (MIN), and Outputting integers (MOUT).Error Handling: Includes basic error messages for conditions like division by zero (which returns the largest positive integer and continues) or attempting to set a precision exceeding allocated memory (which terminates execution).
Site structure and layout ©2025 Majenko Technologies