473,405 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Q: 1.#INF

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?
Jun 16 '06 #1
2 3654
Hello G .Net,

if database_value = double.positiveinfinity then
replace value with dbnull.value
endif
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?

Jun 16 '06 #2
Cheers Ghost

"GhostInAK" <gh*******@gmail.com> wrote in message
news:be*************************@news.microsoft.co m...
Hello G .Net,

if database_value = double.positiveinfinity then
replace value with dbnull.value
endif
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?


Jun 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Geetu | last post by:
I am trying to jar up a file and getting this exception, not sure what could be wrong. The same piece of code works fine in few machines but there is one machine where this piece of code gives this...
6
by: Gustav Lead | last post by:
Hi all, I have trouble reading back floating point data from a file. It appears as if the tokens for positive and negative infinity (1.#INF and -1.#INF) that my implementation writes get...
3
by: Jon Wilson | last post by:
How do I write Not A Number or +/- infinity (floating point values) as literal constants (I'm using g++)? I have a function that returns float, and I need a flag value, and for various reasons...
0
by: JH | last post by:
I have an inf file say "Myfile.inf". I want to install this from inside my setup code in C++. How do I code it? I have seen the SetupInstallFile and SetupInstallFileEx in the MSDN. But I...
55
by: Martin Jørgensen | last post by:
Hi, I found the code below from http://www.blitzbasic.com/Community/posts.php?topic=55633 ------ ' Check if number is finite. Local u:Double = 2 ' also works for floats
1
by: Peter Knörrich | last post by:
Hello, I've found another inconsistency, and looking through the list archives I can find mentions of funky stuff like print float('inf') giving Infanity
2
by: Martin Manns | last post by:
Hi, I am experiencing some trouble with gmpy v1.01. Multiplying an mpq with inf results in a floating point exception that exits python. Has this already been fixed in newer gmpy versions? ~...
2
by: geetareddy | last post by:
What META-INF and WEB-INF contains.
4
by: Joshua J. Kugler | last post by:
I'm trying to put some values into a struct. Some of these values are NaN and Inf due to the nature of the data. As you well may know, struct (and other things) in Python <= 2.4 doesn't support...
2
MrMancunian
by: MrMancunian | last post by:
Hi Everybody, We've got a virus problem in our department and the thing it does is always the same. It creates an autorun.inf in the root of every partition. When the partition is accessed (or...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.