2012/7/12 Benoît Minisini
> Le 12/07/2012 18:52, Jussi Lahtinen a écrit :
> >> This is for performance reasons: '\' (or DIV) operator is faster than
> '/'.
> >>
> >
> > OK.
> >
> >
> >
> >> If you want to use DIV like '/', just use '/'!
> >>
> >
> > "/" is different thing, it doesn't give integer
Le 12/07/2012 18:52, Jussi Lahtinen a écrit :
>> This is for performance reasons: '\' (or DIV) operator is faster than '/'.
>>
>
> OK.
>
>
>
>> If you want to use DIV like '/', just use '/'!
>>
>
> "/" is different thing, it doesn't give integer quotient.
> To get integer quotient from floats I use
> This is for performance reasons: '\' (or DIV) operator is faster than '/'.
>
OK.
> If you want to use DIV like '/', just use '/'!
>
"/" is different thing, it doesn't give integer quotient.
To get integer quotient from floats I use "iQuotient = Floor( a / b )".
Jussi
--
Le 12/07/2012 17:44, Jussi Lahtinen a écrit :
>> Doc states, DIV is a synonymous for \ which is the integer division
>> operator.
>>
>
>
> Documentation says "Calculates the quotient of two Integer numbers,
> rounding down".
> And my question was, in other words, why it calculates quotient for only
> Doc states, DIV is a synonymous for \ which is the integer division
> operator.
>
Documentation says "Calculates the quotient of two Integer numbers,
rounding down".
And my question was, in other words, why it calculates quotient for only
integer numbers?
Output is always integer, but why input
On Thu, 12 Jul 2012, Jussi Lahtinen wrote:
> ? 4.3 DIV 2.1
> Type mismatch: wanted Integer, got Float instead
>
> Why it take only integers?
>
>
> Jussi
> --
> Live Security Virtual Conference
> Exclusive live event will
? 4.3 DIV 2.1
Type mismatch: wanted Integer, got Float instead
Why it take only integers?
Jussi
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has