Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > ROUND

 

 

Purpose

ROUND rounds a number to a specified number of decimal places.
 

Syntax

variable = ROUND (operand1, operand2)
 

Operation

operand1 is the number to be rounded.  It can be any valid numeric constant, variable, or expression.
oerand2
 is the number of decimal places to round operand1.
 

Example

Assume #A = 4.041592,  #B = 2,  #C = 4, and #D = 0.

#I = ROUND (#A, #B)          sets #I to 4.04
#I = ROUND (#A, #C)          sets #I to 4.0416
#I = ROUND (#A, #D)          sets #I to 4
 

Comment on this topic

Topic ID: 520107

 
 
 

Table of Contents

Index

Glossary

-Search-

Back