Hi Mark,

better, but not ready yet. This:

#include <iostream>
#include <tntdb/decimal.h>

int main(int argc, char* argv[])
{
  tntdb::Decimal v(1.1);
  std::cout << v << '\t' << v.getDouble() << std::endl;
}


prints:
11000000000000000888e-19        1.1

The value looks ok, but still the output is wrong.

The output from my testtable is:

16017727022054910243e-30
1.235
3.14159

but sqlplus still tells me:
         K
----------
1.23456789
     1.235
   3.14159

I wonder how it comes, that the 2nd and 3rd values are correct but not the 
first and nor the ctor for double value 1.1.

Tommi

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to