Обсуждение: How to know the type of an expression ?

Поиск
Список
Период
Сортировка

How to know the type of an expression ?

От
maa1666@yahoo.fr
Дата:
Is there a means to know the type of an expression ?
Something like a "typeof" function ?

As I work a lot with numbers of type "numeric", I often want to know
the precision of the result returned by an expression, in case the
returned result is "numeric".
I would also like to know if numbers of type "numeric" have not been
silently converted to "double precision" somewhere in the expression.

Best regards

Nicolas Riesch


Re: How to know the type of an expression ?

От
"Albe Laurenz"
Дата:
> Is there a means to know the type of an expression ?
> Something like a "typeof" function ?
>
> As I work a lot with numbers of type "numeric", I often want to know
> the precision of the result returned by an expression, in case the
> returned result is "numeric".
> I would also like to know if numbers of type "numeric" have not been
> silently converted to "double precision" somewhere in the expression.

Which API are you using?

Yours,
Laurenz Albe