larrydavid
Programmer
Hello,
I have this code...
...which is pulling from this output in a SQL Server 2000 table:
The Data Type is: numeric(24, 12)
The error is: "When casting from a number, the value must be a number less than infinity."
I've tried several approaches including rounding, casting to int, float and double datatypes. I'm stumped so any help is greatly appreciated.
Thanks,
Larry
I have this code...
Code:
if (dr["Test_Ratio"] != null && (float)dr["Test_Ratio"] > 0.005)
...which is pulling from this output in a SQL Server 2000 table:
Code:
[Test_Ratio]
0.049322094006
0.016395231470
0.008675014321
0.008047576179
0.007420138036
0.006629020378
0.005919742477
0.005892462558
0.005701503123
0.005210464577
0.004883105546
0.004855825626
0.004719426030
0.003955588291
The Data Type is: numeric(24, 12)
The error is: "When casting from a number, the value must be a number less than infinity."
I've tried several approaches including rounding, casting to int, float and double datatypes. I'm stumped so any help is greatly appreciated.
Thanks,
Larry