Xylem STORM 3 Basic Programming manual Manual do Utilizador Página 13

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 48
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 47 48

Comentários a estes Manuais

Sem comentários