I have made my application in gambas 3.1.1 under ubuntu 12.04 (using PPA of
Kendek). The installation package is also made from gambas 3.3.1. Tested it on
live system (and installed) in all *buntus and worked fine. After Kendek
upgraded Gambas to 3.2 my application is not working properly. It
Le 12/07/2012 11:30, sundar j a écrit :
> I have made my application in gambas 3.1.1 under ubuntu 12.04 (using
> PPA of Kendek). The installation package is also made from gambas
> 3.3.1. Tested it on live system (and installed) in all *buntus and
> worked fine. After Kendek upgraded Gambas to 3.2
? 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
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
> 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
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
> 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 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
Status: New
Owner:
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 272 by roman.ve...@gmail.com: Progress bars lack the "pulse"
property for intermediate progress bar
http://code.google.com/p/gambas/issues/detail?id=272
Progress bars are
Comment #10 on issue 2 by roman.ve...@gmail.com: No native gambas for
Windows platforms
http://code.google.com/p/gambas/issues/detail?id=2
Gambas currently uses a lot of XOrg stuff, which is how it works on Mac
(not natively under whatever Mac uses, Aqua or something) - it's also the
reason
Hi to all,
I have made my own gambas component in gambas2 under ubuntu 10.04.
It works well till I want raise an event. I always get an error message
"Cannot raise event in static function."
The code is like this:
'Gambas class file
EXPORT
STATIC PUBLIC $A AS INTEGER
STATIC
11 matches
Mail list logo