The following example creates a numeric type variable named gnNumeric
. TYPE( ) displays N, indicating the variable is a numeric type. NTOM( ) is used to convert the variable to a currency type, and TYPE( ) now displays Y, indicating the variable is a currency type after the conversion.
STORE 24.95 TO gnNumeric && Creates a numeric type memory variable
CLEAR
? "gnNumeric is type: "
?? TYPE('gnNumeric') && Displays N, numeric type value
gnNumeric= NTOM(gnNumeric) && Converts gnNumeric to a currency value
? "gnNumeric is now type: "
?? TYPE('gnNumeric') && Displays Y, currency type value