AR2

Contents


ar2 rounds 2/3 to 2 decimal places.

 

Syntax

   ar2( exp_num )

 

Parameters

Element

Description

Restrictions

exp_num

Numerical expression

None.

 

Examples

   TTC = ar2(HT*1.186)
   MNT = ar2(pi/2)

 

Description and comments

ar2(X) returns int(X*100+0.5)/100.
The result is the same type as its argument.

 

Associated errors

Error

Description

ERMODE (10)

The argument is not a numerical type.

 

Associated key words

INT - ARR - FIX


CONTENTS


Copyright © Sage 1999 - 2007