Skip to main content
Nintex Community Menu Bar

How to Round to the Ones Place via an Expression or Function

  • February 15, 2022
  • 0 replies
  • 241 views
  • Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21
 

How to Round to the Ones Place via an Expression or Function

kbt153635

PRODUCT
K2 Cloud
K2 Five
K2 blackpearl
K2 smartforms
BASED ON
K2 blackpearl (all)
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Objective

You may have the need to round to the ones place in a SmartForm or Workflow. For example: you have a value of 135, you need this to be rounded to 140. 

 

This can be done with an expression.

Before You Begin

Make sure that you have a Form or Workflow where you will be doing the rounding on.

How-to Steps

1. Create 2 Controls (Text Box or Data Labels works best). One that will have your original value, and the other control will have your Rounding expression. Make sure both controls are set to Decimal for their Data Type

2. Create an expression on the Second Control like below:

Image

 

This should round the number to the 'Ones place' on the second control. 

Did this topic help you find an answer to your question?

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings