Einzelnen Beitrag anzeigen
Alt 12.10.2012, 00:23   #111
leecher
Moderator
CALC

E r g e b n i s / R e s u l t

Passes a value to the calculator and makes it appear

B e s c h r e i b u n g / D e s c r i p t i o n

The CALC function is similar to the compiler CALCULATOR statement.
However, using this function may be passed a value and that is placed
in the calculator.

The function returns the current calculator value.

S y n t a x

Code:
answer = call ('CALC' , value)
P a r a m e t e r

value - an integer or decimal value that is placed in the calculator
memory

R e t u r n s

A decimal value.

B e i s p i e l / E x a m p l e

Code:
attach 'DESK'
a = call ('CALC' , 3.142)   ! the value is passed to the calculator
			    ! and the calculator appears 
detach 'DESK'
Angehängte Dateien
Dateityp: oac DESK.OAC‎ (15.5 KB, 2x aufgerufen)
leecher ist offline   Mit Zitat antworten