Jump to content
Registration disabled at the moment Read more... ×
msd

FirebirdSQL NaN value for numeric field

Recommended Posts

Hello,

 

FirebirdSQL has a replacement in Delphi for the null value, and it is called NaN (non-numeric value).

I can't prevent this situation, ID DB, so I need to check if my variable (Real type) and my DataSet field (TFloat type) are numeric or not (nil, null, nan, etc.).

 

Thanks in advance...

Share this post


Link to post
14 minutes ago, msd said:

Hello,

 

FirebirdSQL has a replacement in Delphi for the null value, and it is called NaN (non-numeric value).

I can't prevent this situation, ID DB, so I need to check if my variable (Real type) and my DataSet field (TFloat type) are numeric or not (nil, null, nan, etc.).

 

Thanks in advance...

TField.IsNull is the way to check if a database field is NULL. Do not rely on this conditions beeing mapped to a specific value.

  • Thanks 1

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×