Support Article
Round function is not working as expected
SA-31381
Summary
When attempting to use round function to round a decimal value to two digits an error is thrown.
Error Messages
"Expression is not Valid"
Invalid Expression or reference: No suitable instance found
[seeking]
@(Pega-RULES:ExpressionEvaluators).round(double,int)
[candidate function are]
@(Pega-RULES:ExpressionEvaluators).round(BigDecimal,void)
@(Pega-RULES:ExpressionEvaluators).round(void,void)
Steps to Reproduce
1 Open any declare expression.
2. Open Expression Builder.
3. Select All from library and select round(...) from function.
4. Give the input values for numericArg (BigDecimal) & places (Number).
5. Perform Insert > Validate.
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Apply HFix-30813.
Published December 19, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.