I don't understand why I get this error Message: "ORA-06502: PL/SQL: numeric or value error: character to number conversion error"
This happens when I try something like this (just an easy example to show my problem):
create or replace PACKAGE test_package AS
FUNCTION fun(x float) return float;
END test_package;
/
create or replace PACKAGE BODY test_package AS
FUNCTION fun(x float) return float
IS
BEGIN
return x;
END fun;
END;
/
dbms_output.put_line(test_package.fun(0.25)) --ERROR
dbms_output.put_line(test_package.fun(1)) --NO ERROR
Would be nice if someone knows why. Thanks.