Skip to main content

Module binary

Module binary 

Source

Structs§

Binary
A USAGE BINARY, COMP or COMP-4 item, or COMP-5, BINARY-CHAR or COMP-X as native says.
Stored
TruncOptDivergence
A TRUNC(OPT) store whose value exceeds the PICTURE, where decimal and binary truncation give different results and the program depends on which one the generated code happens to use.

Enums§

Native
Whether a binary item’s value is limited by its bytes rather than its PICTURE, and how many bytes it has.

Functions§

alphanumeric_digits
The digit positions Micro Focus gives a PIC X(n) COMP-X item, n from 1 to 8: the digits any value of its n bytes can hold in full.
kept
The value store keeps, whose low-order item.bytes() bytes it stores, and its divergence.
store
Stores value, already scaled to the item’s decimal places. An unsigned item takes the absolute value. See crate::assumptions::TRUNC_OPT_IS_BINARY for what TRUNC(OPT) keeps.