[futurebasic] Re: [FB] divide 3 ways

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2008 : Group Archive : Group : All Groups

From: Carminati Paolo <carminati@...>
Date: Mon, 31 Mar 2008 12:49:08 +0200
> Robert Covington wrote:
> Why can't you just have it so:
> X / Y  is an integer divide and X \ Y is a floating divide, no pref
> needed.
>
> Because there are times when I need an integer divide for speed or
> just need an int resulting, and times when I need a floating, for
> accuracy, and need not lose things due to rounding.

That's fine...
I'm forcing floating divide using \ as R.C. does.

X/Y ALWAYS means integer divide
X\Y ALWAYS means foating divide
It's also easier to read

Paolo C.