A fix is available
APAR status
Closed as program error.
Error description
= thisFunctionDoesNotWorkEvent}; private function thisFunctionWorksEvent(e Event in) thisFunctionWorks(); end private function thisFunctionDoesNotWorkEvent(e Event in) thisFunctionDoesNotWork(); end private function thisFunctionWorks() try aDecimal decimal(4,2) = 1.1; // rounding into a decimal aDecimal = MathLib.round(aDecimal, -1); // cast the decimal into a string aString string = aDecimal; SysLib.writeStdout('Rounding successfull= ' + aString); onException(ae AnyException) SysLib.writeStdout(ae.message); end end private function thisFunctionDoesNotWork() try // rounding into a string aDecimal decimal(4,2) = 1.1; aString string = MathLib.round(aDecimal, -1); SysLib.writeStdout('Rounding successfull= ' + aString); onException(ae AnyException) SysLib.writeStdout(ae.message); end end end After selecting each button in the RUI preview the first rounding returns correctly and the second with the string assignment fails ie: Rounding successful= 1.10 [CRRUI2078E] Math error: round() - Rounding necessary
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** An exception is thrown when the result of MathLib.round is assigned to a string, and the result has some digits after the decimal point.
Problem conclusion
The problem has been fixed.
Temporary fix
Comments
APAR Information
APAR number
PM51879
Reported component name
RATL BUS DEV
Reported component ID
5724S5000
Reported release
801
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2011-11-09
Closed date
2012-01-27
Last modified date
2012-01-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
RATL BUS DEV
Fixed component ID
5724S5000
Applicable component levels
R801 PSN
UP
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]
Document Information
Modified date:
27 January 2012