Return to Statement


Convert Real Number to Character String Example

This example demonstrates the creation of a note which contains the radius of a circle.

   ENTITY/CR1
NUM=2.5
CR1=CIRCLE/0,0,NUM
&DECPL=4
NOTE/0,-3,'THE RADIUS = '+FSTR(NUM)
HALT

The NOTE reads as follows:

THE RADIUS = 2.5000