Xylem STORM 3 Basic Programming manual Manual de usuario Pagina 13

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 48
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 12
11
Used with the SWITCH statement to list potential routes.
a$ = “Hi”
SWITCH a$
CASE “Hello”:
response$ = “And Hello to you”
BREAK
CASE “Hi”:
response$ = “Hi!” REM this case matches and is used
BREAK
END SWITCH
REM response$ is now “Hi!”
Returns the arc-sine value of the given number.
var = ASIN(0) REM sets var to0
var = ASIN(1) REM sets var to 1.5708 (PI/2)
ASIN (number)
Returns the arc-tangent value of the given number.
var = ATAN(0) REM sets var to 0
var = ATAN(1) REM sets var to 0.785398 (PI/4)
ATAN (number)
Causes an immediate exit from a loop or SWITCH statement.
a = 0
WHILE (a < 10)
a = a + 1
IF (a > 5) BREAK REM the while loop exits once a > 5
WEND
REM variable a is now 6
BREAK
CASE
Returns the ceiling or smallest integer not less than the given number.
var = CEIL(1.2) REM sets var to 2
var = CEIL(4.7) REM sets var to5
CEIL (number)
Vista de pagina 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 47 48

Comentarios a estos manuales

Sin comentarios