SIN Examples


Example 1:

 

  

SIN

VALUE,RESULT

 

 

Variable

Format

Contents

Before:

VALUE

3

150

 

RESULT

2.13

•0.•••••••••••••

 

After:

VALUE

3

150

 

RESULT

2.13

-0.7148764296292

 

The LESS Condition Flag is set. RESULT has a negative amount.

 

Example 2:

 

 

Variable

Format

Contents

Before:

VALUE

3

300

 

RESULT

2.7

•3.••••••

 

After:

VALUE

3

300

 

RESULT

2.7

-0.9997558

 

The OVER Condition Flag is set. RESULT was too small to contain -0.9997558399011. The LESS and ZERO Condition Flags are unpredictable.

 

Example 3:

 

  

SIN

"-150",RECVING

 

 

Variable

Format

Contents

Before:

RECVING

4

•150

 

After:

RECVING

1.1

-.5

 

The LESS Condition Flag is set. RECVING has a negative amount.

 



PL/B Language Reference SFORMAT Examples SINH Examples