Re: [cx-oracle-users] float vs. int
Brought to you by:
atuining
From: Geoff G. <ge...@ge...> - 2003-09-28 03:29:07
|
Quoting Geoff Gerrietts (ge...@ge...): > What are the criteria for deciding when a NUMBER will be returned as > a float, or when it will be returned as an int or long? Terribly sorry; found the answer in the mailing list archives. I think for my uses, anything with a scale 0 < sys.maxint should be an integer, and anything with a scale 0 > sys.maxint should be a long. This does not violate the principle of least surprise, and it also relieves me of the burden of post-processing every query result so CORBA doesn't barf. With decimals, it would be nice to work with fixed point rather than floats, but that would likely be a substantial change in my application: floats are everywhere, and in several places, I expect them to be floats. Thanks, --G. -- Geoff Gerrietts "Evolution takes no prisoners." <ge...@ge...> -- Mandy |