Jump to content

Recommended Posts

Posted

I'm not following?

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Example for the Round function :

#include <Constants.au3>
#include <Array.au3>
 
Example()
 
Func Example()
    ; Assign a Local variable an Array which will contain the rounded numbers.
    Local $aRound[5]
 
    $aRound[0] = Round(-1.582, 1)
    $aRound[1] = Round(3.1415, 9)
    $aRound[2] = Round(123.5, -1)
    $aRound[3] = Round(123.5)
    $aRound[4] = Round(50)
 
    ; Display the results.
    MsgBox($MB_SYSTEMMODAL, Default, _ArrayToString($aRound, @CrLf))
EndFunc
Posted

Excellent. Thanks FireFox.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

I haven't! Have you?

I added it as a second example and sent a PM to FireFox for improvements.

Edit: Spelling mistake.

Edit: 2: I would rather people make an effort, than not.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Actually how would you do it? I'm actually intrigued. Maybe I could learn something.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 7/29/2013 at 6:55 PM, guinness said:

I haven't! Have you?

 

I added it as a second example and sent a PM to FireFox for improvements.

 

Edit: Spelling mistake.

No I haven't. That's why I didn't say "Excellent", captain.

♡♡♡

.

eMyvnE

Posted

Well, it shows how the round works with different numbers so the user hasn't to try with different numbers to remember how it's rounded.

It will always seem stupid for you.

Posted
  On 7/29/2013 at 7:00 PM, trancexx said:

No I haven't. That's why I didn't say "Excellent", captain.

Everyone is equal on this Forum.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 7/29/2013 at 7:05 PM, FireFox said:

It will always seem stupid for you.

Who said it was stupid?

Geeze. I remember saying something similar to another MVP a year or two back... The world almost ended then. To prevent that I'll just say that I didn't think it was stupid. It was something else.

♡♡♡

.

eMyvnE

Posted

I consider myself closer to a beginner than many other members around here, and if I understand trancexx correctly, having to read a load of stuff about arrays, the default keyword, file includes etc... just simply to round a number might seem overkill to an absolute beginner.

Posted

Ah czardas, did you look at that html tutorial?

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

@trancexx

Yeah ok, you have not the same point of view that's all :) and no, the world is not ending for that ^^

Posted (edited)
  On 7/29/2013 at 7:43 PM, guinness said:

Ah czardas, did you look at that html tutorial?

 

I did, and I don't think it's as bad as I originally thought. I'm not sure it's really a good idea to start writing a new tutorial until the behaviour of the Run() function is clear to me. It appears to me that the tutorial may need to be rewritten using ShellExecute(). If I had as much time as you seem to have, I would be much more productive than I am right now; and most of that effort would go into music.

Edited by czardas
Posted

OK. No problem.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 7/29/2013 at 7:46 PM, FireFox said:

@trancexx

Yeah ok, you have not the same point of view that's all :) and no, the world is not ending for that ^^

Well, actually no, it's not about the points of view. You see, that would imply us (viewers) having Round-ly equivalent knowledge. When you will know more that can be true, until then it's not about points of view.

And about the world ending... wait for all of the excellencies to chew on this before saying that.

No more off-topic from me.

♡♡♡

.

eMyvnE

Posted (edited)
  On 7/29/2013 at 8:01 PM, guinness said:

OK. No problem.

 

It's not really by choice. I would like to help more but earning a living from my music takes precedence. Hopefully I will have more time to offer in the future.

Edited by czardas
Posted (edited)

Does anyone thing SetExtended is a little ambiguous?

I mean the help file explains it well, but the parameters are a bit... well ambiguous.

Second optional parameter says

  Quote
eturn value [optional] Override the default return value and return this parameter. 

 

 

What default return value you might ask.

Return Value says

  Quote
By default, none, however, if the optional return value argument is passed, then the function will return that value.

 

 

Ok that makes it a bit clearer, the default return must be zero? or none is it, like it says? hmmm I don't know now.

Lets type it into scite and see...

  Quote
SetExtended ( code [, return value = 1] )

 

 

Wait, what now. so is the default 0 or 1?

I know it's trivial to testcheck, but seems it could be made a little clearer.

EDIT:

So it's probably just scite4autoit which might need altering.

What made me look at this, is I was looking to set @extended, but my function if completed successfully never specified a return, as the default is zero (0)

When I seen default = 1 in scite, I thought it might override that and make it 1.

Might be a little confusing.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Posted

It's quite simple to fix. None should be 1.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Now it matches the same as SetError.

Revision: 8268
Author: guinness
Date: 31 July 2013 13:12:51
Message:
Fixed: SetExtended remark.
----
Modified : /trunk/docs/autoit/english/txt2htm/txtFunctions/SetExtended.txt

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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