Empower Toolkit number is always rounded to six decimal places - WKB1691
SYMPTOMS
-
Empower Toolkit number is always rounded to six decimal places, even if the value field in component editor is set to more decimal places
-
When a Toolkit application sets the Amount Value field by sending a string (not a numerical value) with a precision greater than six decimal places, the Value stored in the database and seen in the component editor is always rounded to six decimal places. For example, an Amount Value of 1000.123456789 would be stored as 1000.123457000 and seen in this format when extending the precision for the Value column in Alter Sample.
ENVIRONMENT
- Empower 3
- Empower Toolkit
CAUSE
- The Empower Toolkit accepts a string value from a Toolkit application when setting a field, but it cannot use a precision greater than the precision set for that field within the Empower software. Note that the precision for fields varies in Empower.
FIX or WORKAROUND
The Toolkit application should set the Value using a numerical value, as opposed to a string, and the full precision sent by the application will be used.
ADDITIONAL INFORMATION
There is no workaround that will allow a precision to be set beyond six places for Amount if a string is sent by the Toolkit application. When a string is used to set the value, the default precision for the field is used, and there is no control that can change this from 6. This is a general limitation that would affect other fields in similar situations. PCS#55083 was created to request a Toolkit documentation change to make this limitation clear in the Toolkit Help.
id1691, EMP2LIC, EMP2OPT, EMP2SW, EMP3GC, EMP3LIC, EMP3OPT, EMP3SW, EMPGC, EMPGPC, EMPLIC, EMPOWER2, EMPOWER3, EMPSW, SUP