Expand description
What IBM Enterprise COBOL does with numeric data, on top of what the machine does (zarch).
Where the manuals leave the answer to the generated code, the choice made here is an entry in
assumptions::ASSUMPTIONS until an oracle run settles it.
Re-exports§
pub use options::Arith;pub use options::Numproc;pub use options::Options;pub use options::Trunc;pub use options::TruncCheck;
Modules§
- assumptions
- binary
- float
- Moves between fixed-point decimal and COMP-1/COMP-2, and floating-point intermediates. Each
conversion here is an assumption: see
crate::assumptions::FLOAT_FROM_DECIMAL,crate::assumptions::FLOAT_TO_DECIMALandcrate::assumptions::FLOAT_NARROWING_TRUNCATES. - options
- precision
- Fixed-point intermediate results: how many integer and decimal places IBM carries for each
operation, and exact arithmetic that drops exactly the digits it drops. See
crate::assumptions::INTERMEDIATE_TABLE. - sign
- Signs of packed and zoned items under NUMPROC. Arithmetic results take the preferred sign under
either setting; the settings differ in whether a sign is repaired on the way through a MOVE and
whether a comparison is algebraic. See
crate::assumptions::PFD_MOVES_BYTESandcrate::assumptions::PFD_COMPARES_LOGICALLY.