therks Posted June 8, 2005 Share Posted June 8, 2005 (edited) 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 June 8, 2005 by Saunders My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
CyberSlug Posted June 8, 2005 Share Posted June 8, 2005 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.1II. Ceil(-5.1) = -5 correct because -5 is larger than -5.1III. Ceil(5.0) = 5 correct because no fractional partIV. Floor(5.9) = 5 correct because 5 is lower than 5.9V. Floor(-5.1) = -6 correct because -6 is lower than -5.1Typically:Round means round up if <= .5Ceil means round upFloor means round downInt means round toward zero (truncate)Floor(2.9999) = 2Ceil(2.00001) = 3Int(4.7) = 5Int(-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 More sharing options...
therks Posted June 8, 2005 Share Posted June 8, 2005 Round means round up if <= .5See, 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. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
jpm Posted June 8, 2005 Author Share Posted June 8, 2005 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 More sharing options...
HighGuy Posted June 9, 2005 Share Posted June 9, 2005 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? Link to comment Share on other sites More sharing options...
jpm Posted June 9, 2005 Author Share Posted June 9, 2005 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 More sharing options...
therks Posted June 9, 2005 Share Posted June 9, 2005 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. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
jpm Posted June 9, 2005 Author Share Posted June 9, 2005 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 _GUICtrlListViewGetColumnOrderAlso corrected documentation for _GUICtrlListViewGetColumnOrder. Returns a "|" delimited string instead of an array, now matchesthe _GUICtrlListViewSetColumnOrder in the data type. (gafrost) Link to comment Share on other sites More sharing options...
GaryFrost Posted June 10, 2005 Share Posted June 10, 2005 (edited) Bad merge. Here's the correct include file. Edited June 10, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
jpm Posted June 10, 2005 Author Share Posted June 10, 2005 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 More sharing options...
JoeCool Posted June 11, 2005 Share Posted June 11, 2005 (edited) From 3.1.1.40 to 3.1.1.46 something broke into send() I reported this inhttp://www.autoitscript.com/forum/index.php?showtopic=12384JC :-) Edited June 11, 2005 by JoeCool Link to comment Share on other sites More sharing options...
jpm Posted June 14, 2005 Author Share Posted June 14, 2005 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 More sharing options...
jpm Posted June 15, 2005 Author Share Posted June 15, 2005 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 More sharing options...
jpm Posted June 20, 2005 Author Share Posted June 20, 2005 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 More sharing options...
w0uter Posted June 20, 2005 Share Posted June 20, 2005 my name is wrong its NOT a capital o, its a ZERO 0 My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
jpm Posted June 20, 2005 Author Share Posted June 20, 2005 my name is wrong its NOT a capital o, its a ZERO 0<{POST_SNAPBACK}>No problem I will correct next betaThanks for your testing Link to comment Share on other sites More sharing options...
jpm Posted June 20, 2005 Author Share Posted June 20, 2005 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 More sharing options...
w0uter Posted June 20, 2005 Share Posted June 20, 2005 wow this is like this most rapid 2 release's i have ever seen. btw nice .bak file in it My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
jpm Posted June 21, 2005 Author Share Posted June 21, 2005 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... Link to comment Share on other sites More sharing options...
jpm Posted June 23, 2005 Author Share Posted June 23, 2005 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 More sharing options...
Recommended Posts