Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us