Extended Systems OneBridge 4.1 Guia do Utilizador Página 189

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 188
APPENDIX A Function Reference
Users Guide 175
uPow, uPower
Description Returns the value of a base expression taken to a specified power.
Syntax number uPow(value)
Parameters
number value
A number to calculate on.
Examples
uPow(10, 3) ;; returns "1000"
uRandom
Description Returns a random number greater than or equal to zero and smaller than one.
Syntax number uRandom(value)
Parameters
number input
A number to calculate on.
Examples To return a random number:
uRandom() // returns "0.696654639123727”
uRound
Description Returns the rounded argument to nearest integer. If the second optional
parameter is set,
uRound preserves the specified number of digits behind the
decimal point.
Syntax number uRound(value, scale)
Parameters
number value
A number to calculate on.
number scale
Number of digits.
Examples To round numbers:
uRound(10.1) // returns "10"
uRound(10.49) // returns "10"
uRound(10.5) // returns "11"
Vista de página 188
1 2 ... 184 185 186 187 188 189 190 191 192 193 194 ... 221 222

Comentários a estes Manuais

Sem comentários