|Subject||Firebird 3: formal declaration of ABS internal function, is it polymorphic?|
create or alter function F_ABS (
VAR_1 double precision)
declare variable result double precision;
result = abs(var_1);
But I am confused. My experiments assert that ASB internal function is polymorphic - it returns BIGINT for BIGINT argument and DOUBLE PRECISION for DOUBLE PRECISION arguments, it can be tricky to determine the return type if string arguments is given (and implicit conversion occurs).
I would like that F_ABS has this polymorphic nature of ABS. How should I declare F_ABS to have this polymorphic nature?