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

  • 15 February 2022
  • 0 replies

Userlevel 4
Badge +17

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


K2 Cloud
K2 Five
K2 blackpearl
K2 smartforms
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.


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:



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

0 replies

Be the first to reply!