Hello!
There's the ROUND function which however is not available on our system (it's only available on certain systems). I was then looking for another way to round a D12.2 format to a I12 format with correct rounding (not truncating the two decimals).
In the manual I found this:
"When a value with decimal places is assigned to an integer field, the value is rounded before it is stored. If the value is assigned via a DEFINE or COMPUTE command, the decimal portion of the value is truncated before it is stored."
I wonder about the first sentence. How is this possible without using DEFINE or COMPUTE? Does anyone know?
Thnax for help!
Eva
There's the ROUND function which however is not available on our system (it's only available on certain systems). I was then looking for another way to round a D12.2 format to a I12 format with correct rounding (not truncating the two decimals).
In the manual I found this:
"When a value with decimal places is assigned to an integer field, the value is rounded before it is stored. If the value is assigned via a DEFINE or COMPUTE command, the decimal portion of the value is truncated before it is stored."
I wonder about the first sentence. How is this possible without using DEFINE or COMPUTE? Does anyone know?
Thnax for help!
Eva