Subject | Re: [firebird-support] Round() returning NULL |
---|---|
Author | Ivan Prenosil |
Post date | 2004-10-06T10:07:47Z |
> 2) Look at the arguments in your declaration.Note that looking at arguments does not tell you what datatypes
>
> >The UDF is declared as:
> >declare external function Round
> > int by descriptor, <------ input 1: number to be rounded
> > int by descriptor
> > returns parameter 2
> > entry_point 'fbround' module_name 'fbudf';
>
> You are getting null because you are passing a double precision number to
are supported by udf if "by descriptor" is specified.
It is possible to extend Round() to support double precision input,
and the declaration will remain unchanged.
Ivan