Subject Re: [ib-support] Re: 3 * 1/3 = 0 ???
Author Martijn Tonies
> When you pass 1 that is an integer (no decimal point), 3 well that is also
an integer,
> since everything is integers, it does integer math, remember grade-school
math (it's
> getting tough it's ~25 years ago for me), 1 divided by 3 is 0, 3 goes into
1 exactly 0
> times, with 3 remainder, since we don't care about the remainder it gets
dropped, so
> we are left with 0, 0 times 3 is still 0. So 0 is, the right answer.
>
> If we use 1.0 and 3.0 that's real math,

Since when isn't INTEGER MATH real math?

*g*


With regards,

Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com

Upscene Productions
http://www.upscene.com

"This is an object-oriented system.
If we change anything, the users object."