Subject | Re: [firebird-support] why the result is the number commas? |
---|---|
Author | Milan Babuskov |
Post date | 2012-06-05T10:12:52Z |
W O wrote:
integers. Double precision is built that way to keep integer arithmetics
clean as long as all operands are integers and results of all
intermediate operations are integers. So:
integer * integer = ok
integer + integer = ok
integer - integer = ok
integer / integer = could present problems
Since _counting_ is only addition, it is safe to do even with double.
--
Milan Babuskov
==================================
The easiest way to import XML, CSV
and textual files into Firebird:
http://www.guacosoft.com/xmlwizard
==================================
> Never use double precision for money neither for count something, use itActually, you can use it to _count_ as long as all individual items are
> for measures.
integers. Double precision is built that way to keep integer arithmetics
clean as long as all operands are integers and results of all
intermediate operations are integers. So:
integer * integer = ok
integer + integer = ok
integer - integer = ok
integer / integer = could present problems
Since _counting_ is only addition, it is safe to do even with double.
--
Milan Babuskov
==================================
The easiest way to import XML, CSV
and textual files into Firebird:
http://www.guacosoft.com/xmlwizard
==================================