The following SQL statements show the DDL for the meter distinct UDT and the toInches method.
CREATE TYPE meter AS FLOAT FINAL INSTANCE METHOD toInches() RETURNS FLOAT SPECIFIC meter_toInches NO SQL PARAMETER STYLE TD_GENERAL DETERMINISTIC LANGUAGE C; CREATE METHOD toInches() RETURNS FLOAT FOR meter EXTERNAL NAME 'CS!toinches!udm_src\to_inches.c!F!meter_toInches';