Show / Hide Table of Contents

Round


Math Function

The Round function replaces an expression with the nearest whole number. Use this function to override ProModel's default, truncation.

Syntax

Round(<expression>)

Syntax Example

Integer1 = Round(3.5)

Parameters

(<expression>)

A number or variable defined in your model to replace with the nearest whole number.

Parameter Example

The following example displays rounding the number 9.6 when an Entity enters the Truck Location.

Display Round(9.6)

Round Example 1


Round Example 2

Remarks

The Round function returns an integer.

In This Article
Back to top Generated by DocFX