How to know the type of an expression ?

Started by Nonameover 19 years ago2 messagesgeneral
Jump to latest
#1Noname
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

#2Albe Laurenz
all@adv.magwien.gv.at
In reply to: Noname (#1)
Re: How to know the type of an expression ?

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