From: Garrett Smith on
On 2010-08-11 03:05 PM, Dr J R Stockton wrote:
> In comp.lang.javascript message<i3qcta$uc3$1(a)news.eternal-
> september.org>, Mon, 9 Aug 2010 19:18:17, Garrett Smith
> <dhtmlkitchen(a)gmail.com> posted:
>
>> On 2010-08-09 10:14 AM, Dr J R Stockton wrote:
>>> In comp.lang.javascript message<i3lcr3$vjp$1(a)news.eternal-
>>> september.org>, Sat, 7 Aug 2010 21:46:40, Garrett Smith
>>> <dhtmlkitchen(a)gmail.com> posted:
>>>
>>>> On 2010-08-07 12:57 PM, Dr J R Stockton wrote:
>>>>> In comp.lang.javascript message<i3huli$dkv$1(a)news.eternal-
>>>>> september.org>, Fri, 6 Aug 2010 14:26:23, Garrett Smith
>>>>> <dhtmlkitchen(a)gmail.com> posted:
>>>>>

[...]

> Open office may do as well.
>
I'll check it out.

>> I think that you would find it useful as a
>>> grammar/style checker as well as for spelling and other typos. Change
>>> "results" to "gives".
>>
>> Why?
>
> Because it is better English; and because "results in" would be longer.
> Remember, you are not paid by the word-count. And change
> `Math.round(0.49999999999999992)` results `1`.
> correspondingly.
>

How is it better English? What am I missing here?
--
Garrett
From: Garrett Smith on
On 2010-08-11 10:17 PM, Garrett Smith wrote:
> On 2010-08-11 03:05 PM, Dr J R Stockton wrote:
>> In comp.lang.javascript message<i3qcta$uc3$1(a)news.eternal-
>> september.org>, Mon, 9 Aug 2010 19:18:17, Garrett Smith
>> <dhtmlkitchen(a)gmail.com> posted:
>>
>>> On 2010-08-09 10:14 AM, Dr J R Stockton wrote:
>>>> In comp.lang.javascript message<i3lcr3$vjp$1(a)news.eternal-
>>>> september.org>, Sat, 7 Aug 2010 21:46:40, Garrett Smith
>>>> <dhtmlkitchen(a)gmail.com> posted:
>>>>
>>>>> On 2010-08-07 12:57 PM, Dr J R Stockton wrote:
>>>>>> In comp.lang.javascript message<i3huli$dkv$1(a)news.eternal-
>>>>>> september.org>, Fri, 6 Aug 2010 14:26:23, Garrett Smith
>>>>>> <dhtmlkitchen(a)gmail.com> posted:
>>>>>>
>>>>>>>> I believe that I had changed it from 0.007 to 0.07 per your
>>>>>>>> request,
>>>>>>>> though I don't have the thread on hand. I see that introduced a
>>>>>>>> mistake and so I'll change it back.
>>>>>>>
>>>>>>> Reinvestigating this, I see that .07.toFixed(1) rounds to 0 in IE
>>>>>>> 6-8
>>>>>>> and 1 in IE9.
>>>>>>>
>>>>>>> Doesn't that example show that the text in the FAQ is therefore
>>>>>>> correct?
>>>>>>
>>>>>>
>>>>>> No, because the Subject line says "exactly 2 decimal places". The
>>>>>> expression 0.07.toFixed(2) works correctly in IE. Just use 0.007.
>>>>>>
>>>>>
>>>>> The entry has:
>>>>>
>>>>> | There are bugs in JScript's implementation with certain numbers, for
>>>>> | example 0.07.
>>>>>
>>>>> More explicit:
>>>>> | There are bugs in versions of Microsoft's implementation (JScript
>>>>> |<= 5.8) with certain numbers, for example 0.007.toFixed(2) results
>>>>> | "0.00" instead of "0.01".
>>
>> No need to bloat the entry; just change the 0.7 to 0.007. You should
>> also change it in the // Test results part that you added.
>>
>
> If JScript is mentioned, the version should be mentioned as well.
> Otherwise, it would be better to say "some implementations".
>
> | There are bugs in some implementations. JScript <= 5.8, for example
> | 0.007.toFixed(2) results "0.00" instead of "0.01".
>

Missing a comma. Could also reverse the order of parts:

....For example, JScript <= 5.8 0.007.toFixed(2) results "0.00" instead
of "0.01".
--
Garrett
From: Garrett Smith on
On 2010-08-13 03:08 PM, Dr J R Stockton wrote:
> In comp.lang.javascript message<i4004v$djc$1(a)news.eternal-
> september.org>, Wed, 11 Aug 2010 22:17:21, Garrett Smith
> <dhtmlkitchen(a)gmail.com> posted:
>
>> On 2010-08-11 03:05 PM, Dr J R Stockton wrote:
>
>
>> If JScript is mentioned, the version should be mentioned as well.
>> Otherwise, it would be better to say "some implementations".
>>
>> | There are bugs in some implementations. JScript<= 5.8, for example
>> | 0.007.toFixed(2) results "0.00" instead of "0.01".
>>
>
> That requires that you know, for certain, that versions above 5.8 are
> correct, since it may be understood as implying such. And you still
> need to correct the grammar. Try reading Trollope.
>
>

It has been observed that in the script engine for IE9 beta, the bugs
regarding 0.007 and 0.07 are no longer present.

Statement that JSCript 5.8 and below are buggy does not imply that
versions above are completely error-free.

[...]
>
>>> If you want to know about doing something exactly in JavaScript, would
>>> it not be a good idea to try the JavaScript index page js-index.htm and
>>> observe the appearance of the word "Exact", linking to js-exact.htm?
>>>
>> Why don't you post a link?
>
> Because you had all the information that was necessary, in that article.
> And you should not put that link into the FAQ section under discussion.
>
Let me get this straight: You did post a link because I should not put
that link into the FAQ section under discussion? Were you
second-guessing my actions? What's stopping me from adding a link if I
found the page ulteriorly?

Bonus question: Is such thinking is acquired by what you call 'education'?

Oh - Eclipse is up -- gotta get back to it...
--
Garrett
From: Garrett Smith on
On 2010-08-13 04:43 PM, Garrett Smith wrote:
> On 2010-08-13 03:08 PM, Dr J R Stockton wrote:
>> In comp.lang.javascript message<i4004v$djc$1(a)news.eternal-
>> september.org>, Wed, 11 Aug 2010 22:17:21, Garrett Smith
>> <dhtmlkitchen(a)gmail.com> posted:
>>
>>> On 2010-08-11 03:05 PM, Dr J R Stockton wrote:

[...]
> Let me get this straight: You did post a link because I should not put
s/did/didn't
--
Garrett