Numeric Substitution Variable Parameters

The following are examples of Numeric Substitution Variable Parameters: 

Parameter Description Example Value Variable Result
f Returns the fractional part of a floating-point number N+1784.23 &N|f|; 0.23
l Returns the integer part of a floating-point number N=1784.23 &N|i|; 1784
pn Formats the variable to n decimal places from 0-9 N=1784.238175 &N|p2|; 1784.24

'kb'

'mb'

'gb'

'tb'

'pb' and 'eb' also supported

Converts a number representing bytes into the respective storage unit.

The result is the decimal representation of the byte value (i.e. divided by 1000)

N=10273460156234

 

&N|kb|;

&N|mb|;

&N |gb|;

&N|tb|;

102734601562.34

102734601.56234

102734.60156234

102.73460156234

'kib'

'mib'

'gib'

'tib'

'pib' and 'eib' also supported

Converts a number representing bytes into the respective storage unit.

The result is the binary representation of the byte value (i.e. divided by 1024)

N=10273460156234

&N|kib|;

&N|mib|;

&N |gib|;

&N|tib|;

10032675933.822

9797535.0916233

9567.9053629133

9.3436575809701

+n

+&v

Adds the number n to the variable result, or adds the value of variable &v to the result

N1=356

N2=78

&N1|+45|;

&N1|+&N2|;

401

434

-n

-&v

Subtracts the number n to the variable result, or subtracts the value &V from the result

N1=356

N2=78

&N1|-45|;

&N1|-&N2|;

311

278

*n

*&v

Multiplies the number n to the variable result, or multiplies the value &V from the result

N1=356

N2=78

&N1|*45|;

&N1|*&N2|;

16020

27768

/n

/&v

Divides the number n to the variable result, or multiplies the value &V from the result

N1=356

N2=78

&N1|/45|;

&N1|/&N2|;

7.9111111

4.5641025

Related Topics