Subject | Re: [ib-support] Re: 3 * 1/3 = 0 ??? |
---|---|

Author | Martijn Tonies |

Post date | 2002-08-30T20:50:12Z |

> When you pass 1 that is an integer (no decimal point), 3 well that is alsoan integer,

> since everything is integers, it does integer math, remember grade-schoolmath (it's

> getting tough it's ~25 years ago for me), 1 divided by 3 is 0, 3 goes into1 exactly 0

> times, with 3 remainder, since we don't care about the remainder it getsdropped, so

> we are left with 0, 0 times 3 is still 0. So 0 is, the right answer.Since when isn't INTEGER MATH real math?

>

> If we use 1.0 and 3.0 that's 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."