I found this here: -
The difference between Int() and CInt() is:
Int() may return a Float value, CInt() is limited to 32 bit Integer.
Int() rounds to the next lower value. i.e. -4.6 to -5, while CInt rounds towards 0 i.e. -4.6 to -4
How does Int return a Float value?
Search found 1106 matches
- Saturday 3rd June 2023 11:12am
- Forum: Beginners
- Topic: Rounding to two decimal places without Round
- Replies: 14
- Views: 2740
- Thursday 1st June 2023 9:21am
- Forum: Beginners
- Topic: Rounding to two decimal places without Round
- Replies: 14
- Views: 2740
Re: Rounding to two decimal places without Round
My solution would be: -
Print Int(2000.5354 * 100) / 100
- Monday 22nd May 2023 3:55pm
- Forum: The Gambas IDE
- Topic: How to run the IDE with QT
- Replies: 12
- Views: 6800
Re: How to run the IDE with QT
Well no. If you go to the "About gambas" window you can see what component is used for the ide. The debug menu sets what toolkit to use when testing your project with the ide debugger. OK, but using this trick I can access the Group property, and it makes no difference if I then set it ba...
- Saturday 20th May 2023 2:54pm
- Forum: The Gambas IDE
- Topic: How to run the IDE with QT
- Replies: 12
- Views: 6800
Re: How to run the IDE with QT
gbWilly's command works when used as a Keyboard Shortcut.
Bruce's command works from the Terminal.
I also discovered that if you look at 'Debug' menu, you can see which component is used.
Thanks again.
Bruce's command works from the Terminal.
I also discovered that if you look at 'Debug' menu, you can see which component is used.
Thanks again.
- Friday 19th May 2023 3:49pm
- Forum: The Gambas IDE
- Topic: How to run the IDE with QT
- Replies: 12
- Views: 6800
Re: How to run the IDE with QT
Thanks, I'll try that out later. A pint awaits right now......
- Friday 19th May 2023 3:14pm
- Forum: The Gambas IDE
- Topic: How to run the IDE with QT
- Replies: 12
- Views: 6800
How to run the IDE with QT
I have discovered that if I run the Gambas IDE with QT5 it solves the problem of not being able to enter text into the Group 'Drop Down List'. I have tried to sort this problem by changing themes and font sizes, with no joy. My question is what is the terminal command that will do this? I am running...
- Thursday 18th May 2023 12:31pm
- Forum: Beginners
- Topic: Read a .mbox format
- Replies: 1
- Views: 796
Re: Read a .mbox format
I had to Google to find what a MBOX was! I don't think Gambas has a way to deal with this directly. The file is in plain text, so should not be too difficult to extract what you need.
- Wednesday 17th May 2023 7:32am
- Forum: Lounge
- Topic: Lenovo Thinkbook issues installing Linux
- Replies: 18
- Views: 13007
Re: Lenovo Thinkbook issues installing Linux
Is there A BIOS update available?
- Saturday 13th May 2023 2:04pm
- Forum: Lounge
- Topic: Lenovo Thinkbook issues installing Linux
- Replies: 18
- Views: 13007
Re: Lenovo Thinkbook issues installing Linux
Etcher can create an ISO, and it is available for Linux, if that helps.
- Monday 8th May 2023 10:11am
- Forum: General
- Topic: A4 - Printer [Solved]
- Replies: 2
- Views: 724