Q: 1.#INF

  • Thread starter Thread starter G .Net
  • Start date Start date
G

G .Net

Hi

Can anybody help with the following?

I'm using a DataAdaptor to write data back to a SQL Server. If the DataTable
contains divide by zero, then understandably 1.#INF is written back to the
database. However, I'd prefer to write back NULL.

Can anybody tell me how to do this?
 
Hello G .Net,

if database_value = double.positiveinfinity then
replace value with dbnull.value
endif
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top