Did this article resolve your question/issue?



Corticon Server for .NET Invalid Rounding of Decimal Values


TitleCorticon Server for .NET Invalid Rounding of Decimal Values
URL Namecorticon-net-invalid-rounding-of-decimal-values
Article Number000110309
EnvironmentProduct: Corticon Server for .NET
Version: 5.5.x, 5.6.x, 5.7.0.x
OS: All supported platforms
Database: N/A
Browser: N/A
Application Server: N/A
Question/Problem Description
Decimal values with more that seven digits are being truncated or rounded when using Business Objects (BOs).
Steps to ReproduceSteps to reproduce issue:
1) Install Corticon Server for .NET
2) Extract the file attached into the CORTICON_WORK_DIR\Samples\Rule Projects\JOM\Rules directory after backing up the existing Testing_Increment.ers and Testing_Increment_inst.ers files
3) Invoke the .NET JOM Test Client located at CORTICON_HOME\Server .Net\samples\bin\JomClient.exe
4) Click the "Test" button, to see the output of the BOs

Observed Results:
aObjectA.Decimal_* values are truncated or rounded for the decimal data types

aObjectA.Decimal_Class = 987654.1
aObjectA.Decimal_Prim = 987654.1

Expected Results:
aObjectA.Decimal_* values should not be truncated or rounded for the decimal data types

aObjectA.Decimal_Class = 987654.123457
aObjectA.Decimal_Prim = 987654.123457
Clarifying Information
The decimalscale property is set to the default value of 6 and should be rounding to the sixth decimal place.
Error Message
Defect/Enhancement NumberDefect 87459
Corticon Server for .NET execution of Business Objects incorrectly converted Corticon's internal BigDecimal object into .NET cli.System.BigDecimal prior to setting into a Business Object.
Fixed in hot fixes,,
Refer to Progress Articles to download and install the hot fix:
000064511, Where are the Corticon 5.5.x.x hotfix files located on ESD?
000075358, Where are the Corticon 5.6.x.x hotfix files located on ESD?
000087788, Where are the Corticon 5.7.x.x hotfix files located on ESD?

Recompile the offending .eds file with the new hot fix so that the listener classes can be updated.

Change the .NET Business Object attribute data type to Double or Nullable Double.
Last Modified Date6/19/2018 6:10 PM
Files 1.
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.