Deutsch English
Alphabetical index
Array functions
CGI functions
Data types
Date functions
Debugging
Fulltext functions
Language elements
Numerical functions
  • abs()
  • arccos()
  • cos()
  • exp()
  • frac()
  • int()
  • log()
  • random()
  • round()
  • sin()
  • sqrt()
  • str()
  • testbit()
  • val()
    Operators
    Other functions
    Ramtext functions
    Selecting
    Socket functions
    Statistical functions
    Stream functions
    String functions
    System functions
    Table functions
    Text functions
    Home    Overview    Search    Impressum    Contact    Members
    Topic complex Numerical functions
    Function val()
    Short Analyses a string
    Syntax VAL(S : STRING) : REAL|STRING
    Parameter S : string in the form of a valid EASY expression.
    Return Calculated value of S.
    See also:
    valstr()
    Description First of all S is compiled. If there are errors while compiling a runtime error occurs which can be catched with the common methods.

    If compiling was successful the procedure is different depending on how the NV runtime flag is set:

    NV 1 (only numeric value = default) In this case a runtime error occurs too if it is not a numeric constant (number, date, time). No calculations are effected.

    NV 0 : The compiled expression is calculated. Thereby as standard functions as all functions of the module can be accessed. Above all this mode is dangerous if S is an (unchecked) input of the user!

    User comments:
    Write a comment:
    Name
    EMail
    Subject
    Text (Switch mode)

    Choose between
    the normal and the
    advanced editor.
    The advanced editor
    runs in IE 5+ and
    Mozilla 1.4+ only
    SPAM-Protection Please enter tdbengine in this field.

    tdbengine chat
    irc.tdbengine.org
    #tdbengine

       Copyright © 2003-2004 tdb Software Service GmbH
       Alle rechte vorbehalten. / All rights reserved
       Last changed: 21.10.2004
    {Fehler für :execmacro{execmacro="sessionspy"}