This document outlines a patch for the FOCAL programming language, designed to integrate with the Extended Arithmetic Element (EAE) floating-point package. It details improvements to the FITR (floating-to-integer) conversion routine, including better handling of edge cases for negative arguments and specific numerical ranges. Additionally, it introduces a new multiplicative-congruential pseudorandom number generator to replace the existing FRAN function, providing a flatter distribution and a longer sequence repeat cycle. The document includes technical details for implementation, including memory locations and relevant switch register usage for resetting the generator.
Site structure and layout ©2026 Majenko Technologies