Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

round

round

Returns the number with no fractional part that is closest to the argument. If there are two such numbers, the one that is closest to positive infinity is returned. If type of argument is one of the four numeric types
xs:float
,
xs:double
,
xs:decimal
, or
xs:integer
, the type of the result is the same as the type of argument. If the type of argument is a type derived from one of the numeric types, the result is an instance of the base numeric type.

Syntax

fn:round(arg)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg
Required
Numeric datatype. Returns the number with no fractional part that is closest to the argument. You can enter any valid expression.

Return Value

  • Numeric value.
  • If one of the arguments is NULL, ROUND returns NULL.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:round(5)
5
fn:round(5.1)
5
fn:round(5.5)
6
fn:round(-5.5)
-5
fn:round(-5.51)
-6

0 COMMENTS

We’d like to hear from you!