HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

5-37
TAN
The TAN function returns the tangent of a number. The result is of type
REAL.
Syntax
TAN(
n
)
Parameters
n
The number to be evaluated. This is of type REAL.
Examples
10 A = TAN(50) !A = 1.19 (Degrees)
20 B = TAN(50) !B = 1.00 (Grads)
30 C = TAN(50) !C = -.27 (Radians)
TASKID
The TASKID function returns the current task number. The task number is
the PIN (Process Identification Number) for a process (in this case the
PIN for the HP Business BASIC/XL interpreter or the compiled program).
The PIN is assigned by the operating system for keeping track of multiple
processes. You can use the PIN to find out more information about a
process.
Syntax
TASKID
Examples
10 Pin = TASKID !After this call, pin will contain the PIN
11 !for this process.
TIME
The TIME function returns information about the current time of day, and
the actual time elapsed since a program began execution.
Syntax
TIME (
num_expr
)
Parameters
num_expr
A numeric expression that evaluates to an integer.
If
num_expr
evaluates to a real value, the TIME function
rounds it to the nearest short integer before returning
information.
The TIME function returns the following information
dependent on the value of
num_expr
:
num_expr
Value Information Returned
Less than zero Clock time since interpreter or
compiled program began running
Zero Minute of current time of day
One Hour of current time of day
Two Current day
Three or greater Current year
Examples