Pathological floating point problems: Difference between revisions

→‎{{header|Visual Basic .NET}}: Added <code /> tags for args description
(→‎{{header|Visual Basic .NET}}: Added <code /> tags for args description)
Line 3,306:
 
The program defines three compiler constants that toggle:
* <code>USE_BIGRATIONAL</code>: whether to use BigRationalLibrary; when False, a mock type and functions are defined that allows the code to be compiled without a reference to the library.
* <code>BANDED_ROWS</code>: whether to change the console colors to format output tables with alternating white-on-black and black-on-white rows.
* <code>INCREASED_LIMITS</code>: whether to additionally display n = 1000 for Wrong Convergence Sequence and up to year 40 for The Chaotic Bank Society.
 
Because of operator overloading, the implementations are visually very similar. Integral literals are used where possible as they implicitly convert to the other types.
Anonymous user