Thread: 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. Best regards Nicolas Riesch
> 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