Re: [Gambas-user] DIV

2012-07-13 Thread Fabien Bodard
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

Re: [Gambas-user] DIV

2012-07-12 Thread 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 quotient. > To get integer quotient from floats I use

Re: [Gambas-user] DIV

2012-07-12 Thread Jussi Lahtinen
> 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 --

Re: [Gambas-user] DIV

2012-07-12 Thread Benoît Minisini
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

Re: [Gambas-user] DIV

2012-07-12 Thread Jussi Lahtinen
> 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

Re: [Gambas-user] DIV

2012-07-12 Thread Tobias Boege
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

[Gambas-user] DIV

2012-07-12 Thread Jussi Lahtinen
? 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