Navigation: Scripting Reference Manual > Functions & Subroutines > Round

 

Round

 

Contact Us: fredsupport@photonengr.com

 

Description

Performs even rounding of a floating point number.

 

Syntax

m = Round( num )

 

Parameters

m (Long)

Integer value (see Remarks).

 

num As Double

Floating point number.

 

Remarks

Performs even rounding of a floating point number according to the Microsoft Visual Basic definition. Specifically, for the special case of floating point numbers of the form x.5, the function round to the closest even number. For example, Round(2.5) = 2 while Round(3.5) = 4.

 

See Also

Int & Fix (BASIC Commands)

 

 

 

 

 

Copyright © Photon Engineering, LLC