The val procedure

Description

The val procedure converts a string value into an integral real value and assigns the converted value into a variable.

Parameters

Example

Given integer variables "i" and "x" the following:

    val('123EB', i, x)

will store 123 in "i" and 4 in "x".

Give a real variable "r" and an integer variable "x" the following:

   val('123.45', r, x)

will store 123.45 in "r" and 0 in "x".

Portability

Operating Systems: All
Standard Pascal: No