Jump to content

3.1.1++


jpm
 Share

Recommended Posts

Here's a question. Is there a difference between Ceil/Floor, and Round/Int?

Edit: Actually I figured out the difference for myself, and the Ceil function does not seem to work properly.

As I understand it, here's how it should return:

I. Ceil(5.1) = 6

II. Ceil(-5.1) = -5

III. Ceil(5.0) = 5

IV. Floor(5.9) = 5

V. Floor(-5.1) = -6

The Ceil is faulty though, as test II returns -4, and test III returns 6.

Edited by Saunders
Link to comment
Share on other sites

  • Replies 513
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Here's a question. Is there a difference between Ceil/Floor, and Round/Int?

I. Ceil(5.1) = 6 correct because 6 is larger than 5.1

II. Ceil(-5.1) = -5 correct because -5 is larger than -5.1

III. Ceil(5.0) = 5 correct because no fractional part

IV. Floor(5.9) = 5 correct because 5 is lower than 5.9

V. Floor(-5.1) = -6 correct because -6 is lower than -5.1

Typically:

Round means round up if <= .5

Ceil means round up

Floor means round down

Int means round toward zero (truncate)

Floor(2.9999) = 2

Ceil(2.00001) = 3

Int(4.7) = 5

Int(-0.99) = 0

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

Round means round up if <= .5

See, that's my idea too, but define "round up"

'Cus round(-5.5), if it's rounding "up" would return 5, correct? But it returns 6.

So you agree with me about Ceil/Floor. That means that the current Ceil function does not work properly. I can see why too, as all it does is run Int() and then add 1. So if you run Int() on 5.0 you get 5, and then add 1, you get 6. That is incorrect.

Link to comment
Share on other sites

See, that's my idea too, but define "round up"

'Cus round(-5.5), if it's rounding "up" would return 5, correct? But it returns 6.

So you agree with me about Ceil/Floor. That means that the current Ceil function does not work properly. I can see why too, as all it does is run Int() and then add 1. So if you run Int() on 5.0 you get 5, and then add 1, you get 6. That is incorrect.

<{POST_SNAPBACK}>

It would be better to discuss beta problem in separate thread so everybody can follow separate topics.

Thanks :(

Link to comment
Share on other sites

Hi jpm,

would be nice to have a "Beta SyntaxCheck" in the SciTe tools menu. Do you think that this is possible to implement in the beta installer?

<{POST_SNAPBACK}>

I can agree with you but I don't bhave what is needed to do it JdeB can answer to your request
Link to comment
Share on other sites

Is there any way I can get the updated API, keyword files, etc, for Scite without using the latest beta installer.exe? I have all my file associations/settings setup specifically, and the beta installer always messes them up. The only files I need would be au3.api and au3.keywords.properties, any chance could these be added to the .zip releases, or even just available seperately in the directory where the betas are stored. I don't even need au3.properties, as I've butchered the hell out of it manually anyway (the Tools menu was too long, so I took out most of the external programs, about the only one I use is CS's GUIBuilder when I'm lazy anyway :().

Thanks for reading.

Link to comment
Share on other sites

9th June 2005 - v3.1.1.45 (beta)

Fixed : Internal change in array updating bad merge (Sorry Tylo)

Fixed : GuiCtrlSetState on control tab (Thanks HighGuy)

Fixed : Tray/contextmenu treeview ... (By Holger)

Updated : UDFs 1.18 (By JdeB/gafrost)

- Fixed descending sort issue in multi dimension arrays.

- Fixed _GUICtrlListViewSort() top handle numeric values correctly. (gafrost)

- Renamed _GUICtrlListViewGetColumnOrderArray to _GUICtrlListViewGetColumnOrder

Also corrected documentation for _GUICtrlListViewGetColumnOrder.

Returns a "|" delimited string instead of an array, now matches

the _GUICtrlListViewSetColumnOrder in the data type. (gafrost)

Link to comment
Share on other sites

10th June 2005 - v3.1.1.46 (beta)

Changed : Opt() with just the "option" return the current value. (Thanks Saunders)

Fixed : Opt("GUIDataSeparatorChar",...) can be used in listview and listviewitem. (Thanks Saunders)

Fixed : ContextMenu position (Thanks HighGuy/Holger)

Updated : UDFs 1.19 (By JdeB/gafrost)

- Fixed some merge issues.

Link to comment
Share on other sites

14th June 2005 - v3.1.1.47 (beta)

Fixed : GuiCtrlSetState disable on hidden control tab (Thanks Josbe)

Fixed : Send("+{END}t) (Thanks JoeCool)

Added : GuiCtrlSetImage for GuiListViewItem control (By Holger)

Updated : Internal optimisation in AutoItSetOption() (By Nutster)

Fixed : TrayItemGetText return (Thanks .../Holger)

Updated : GuiCtrlSetColor, GuiCtrlSetBkColor, GuiCtrlSetImage for ListviewItem control. (by Holger)

Added : Option to ObjEvent to retrieve the name of the current Error Handler function (By SvenP)

Added : Preliminary GUICtrlCreateObj() support (bugware !). (By SvenP)

Link to comment
Share on other sites

15th June 2005 - v3.1.1.48 (beta)

Fixed : GuiGetCursorInfo with nonactive GUI (Thanks Helge)

Removed : Bad refresh on double GUICtrlSetPos : AutoBuilder cannot resize control. Cannot work around a Windows bug.

Added : Support for Type Libraries that don't register themselves using version 1.0 (like Crystal Report version 8.0) (By SvenP)

Link to comment
Share on other sites

20th June 2005 - v3.1.1.49 (beta)

Added : $COLOR_... in <Constants.au3> (Thanks Steve8tch, Helge, Burrup)

Updated : GuiSwitch tabitemID optional parameter to allow dynamic control creation on a tabitem.

Fixed : TraySetOnEvent, DLLStructCreate, DllCall, UDP...doc. (Thanks Zedna,wOuter)

Fixed : Made sure that declaring a UDF parameter in a Local or Global statement will raise an error. (Thanks Tylo/Nuster)

Fixed : Bug with accelerator keys (Alt+...) and tabs. (Thanks CyberSlug)

Link to comment
Share on other sites

20th June 2005 - v3.1.1.50 (beta)

Updated : UDFs 1.20 (By JdeB/gafrost)

- Removed the following functions from GuiListView.au3: (gafrost) _GUICtrlListViewSetBkColor _GUICtrlListViewSetTextBkColor _GUICtrlListViewSetTextColor

- Fixed _GUICtrlTreeViewDeleteItem() to deleted more than 2 levels deep. (gafrost)

- GUICtrlTreeView.au3 UDF's (gafrost)

Link to comment
Share on other sites

wow this is like this most rapid 2 release's i have ever seen.

btw nice .bak file in it :)

<{POST_SNAPBACK}>

5h47 is not the best score but you know sometime you need to have dinner... :evil:
Link to comment
Share on other sites

23th June 2005 - v3.1.1.51 (beta)

Updated : TCPSend, TCPRecv examples (erifash/Larry)

Added : Const keyword to UDF parameters. (Thanks Jon/Nutster)

Fixed : Treeview painting under OS <XP (by holger)

Fixed : Listview extend style in GuiConstant.au3 and in Doc.

Updated : UDFs 1.21 (By JdeB/gafrost)

- Fixed Dim for $h_Tree in _GUICtrlTreeViewItemGetTree. (gafrost)

- Added variable passed in to _GUICtrlTreeViewItemGetTree and changed example to reflect this change for separator char. (gafrost)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...