J
Jimmy
Hi!
Simply put, the following code:
bool systemOk = true;
for (int i=0; i<10000; i++)
{
double s = double.Parse("-606,11");
if (!s.ToString("0.00").Equals("-606,11"))
{
systemOk = false;
Console.WriteLine("On iteration #{0}. '606,11' was parsed as {1}", i, s);
}
}
if (systemOk)
{
Console.WriteLine("No error found!");
}
Console.WriteLine("Press enter to exit...");
Console.ReadLine();
....outputs the following the first run:
On iteration #2373. '606,11' was parsed as -606,01
On iteration #8949. '606,11' was parsed as -606,01
On iteration #9338. '606,11' was parsed as -606,01
On iteration #9643. '606,11' was parsed as -606,01
On iteration #9817. '606,11' was parsed as -606,01
Press enter to exit...
....and the following on the second run:
On iteration #4944. '606,11' was parsed as -606,01
On iteration #5911. '606,11' was parsed as -606,01
On iteration #8302. '606,11' was parsed as -606,01
On iteration #8518. '606,11' was parsed as -606,01
On iteration #8681. '606,11' was parsed as -606,01
Press enter to exit...
Should I consider suspect a hardware error? I've ran it on other computes
with no errors. Any hints on how to test the hardware to verify such
hypothesis?
Simply put, the following code:
bool systemOk = true;
for (int i=0; i<10000; i++)
{
double s = double.Parse("-606,11");
if (!s.ToString("0.00").Equals("-606,11"))
{
systemOk = false;
Console.WriteLine("On iteration #{0}. '606,11' was parsed as {1}", i, s);
}
}
if (systemOk)
{
Console.WriteLine("No error found!");
}
Console.WriteLine("Press enter to exit...");
Console.ReadLine();
....outputs the following the first run:
On iteration #2373. '606,11' was parsed as -606,01
On iteration #8949. '606,11' was parsed as -606,01
On iteration #9338. '606,11' was parsed as -606,01
On iteration #9643. '606,11' was parsed as -606,01
On iteration #9817. '606,11' was parsed as -606,01
Press enter to exit...
....and the following on the second run:
On iteration #4944. '606,11' was parsed as -606,01
On iteration #5911. '606,11' was parsed as -606,01
On iteration #8302. '606,11' was parsed as -606,01
On iteration #8518. '606,11' was parsed as -606,01
On iteration #8681. '606,11' was parsed as -606,01
Press enter to exit...
Should I consider suspect a hardware error? I've ran it on other computes
with no errors. Any hints on how to test the hardware to verify such
hypothesis?