SetRoundMode


 

SetRoundMode>roundingmode

 

Sets the rounding mode for the Round function.  Roundingmode can be one of:

 

0: Round to Nearest (Default)

1: Round Down

2: Round Up

3: Truncate

 

With the default rounding mode (nearest) if X is exactly halfway between two whole numbers, the result is always the even number.