Table of Contents

VAL

PET VIC-20 C64 C16 Plus/4 C128 X16

The VAL() function converts a string to a floating point number.

Function header

DECLARE FUNCTION VAL AS FLOAT (instr$ AS STRING) SHARED STATIC INLINE

Examples

PRINT VAL("3.14159")