A fix is available
APAR status
Closed as program error.
Error description
The DXL Function intOf(real) provides incorrect output for values in range -1.0 ? x ?= -0.5 For numbers in this range, the result is 0 instead of -1. Consider the following example: ------------------------------------ real x = -0.9 print intOf(x) The output produced is 0 instead of -1. More examples: ================================== x result -0.5 0 (should be -1) -0.7 0 (should be -1) -0.99 0 (should be -1) ==================================
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** The DXL Function intOf(real) provides incorrect output for values in range -1.0 ? x ?= -0.5. The output produced is 0 instead of -1
Problem conclusion
The function which implements the perm intOf(real) is incorrect. Since existing customers are accustomed to the behavior of perm, a new perm is introduced to correct the issue. "RoundtoNearestInt" perm is introduced which will behave same as intOf except for the range -1.0 ? x ?= -0.5, wherein the real value will be rounded to nearest as expected. intOf() perm remains unchanged.
Temporary fix
Comments
APAR Information
APAR number
PM69829
Reported component name
TLOGIC DOORS
Reported component ID
5724V61DR
Reported release
930
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-07-30
Closed date
2012-11-27
Last modified date
2012-11-27
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
TLOGIC DOORS
Fixed component ID
5724V61DR
Applicable component levels
R930 PSN
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYQBZ","label":"Rational DOORS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.3","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Document Information
Modified date:
29 October 2021