From: Robert Purves <listrp@...>

Date: Tue, 1 Apr 2008 13:52:12 +1300

Date: Tue, 1 Apr 2008 13:52:12 +1300

Robert Covington wrote: > Peter asked a good question...if you have two doubles for example > somedouble = 2.42/4.29 , but use the integer divide sign , you'll > still get a floating divide result, correct? Yes. These divisions are floating-point, no matter what division symbol is used: [1] float/float [e.g. 2.42/4.29] [2] float/integer [e.g. 2.42/4] [3] integer/float [e.g. 2/4.29] [4] dim as double floatResult : floatResult = integer/integer [e.g. 8/9] In [4], "floatness" implied by the destination of the expression overrules the "integerness" of the right hand side. Numerator and denominator are converted to doubles and divided on the fpu. Robert P.