VK said:
"Three Number Formats: JavaScript Number Implementation"
<
http://www.devx.com/webdev/Article/17215/0/page/3>
You realise that if you search the Internet you can always find someone
claiming that almost any proposition is true. The ability to refer to
such an article doesn't make the proposition true.
This page asserts that "If the interpreter spots a new number, it will
first try reading the number as an integer. If that's possible, then it
stores the number as a 31 bit integer, not as a 64 bit IEEE 754", but
presents precisely nothing that differs from what would be expected if
all numbers were stored as IEEE 754 double precision floating point
numbers. Consequentially it makes an unsubstantiated claim and does
nothing else.
"Four Values: Warning Numbers You Need to Know"
<
http://www.devx.com/webdev/Article/17215/0/page/4>
And here we find a page telling us how javascript stores RGB colors,
even though the language has no notation of what an RGB color is. So we
have a work by an author who doesn't understand what javascript is.
Don't ask me why should you take the author as an authority.
Because you never explain anything when asked?
No I shouldn't.
But both articles give you enough of data to conduct
your own experiments to prove it or to dismiss it.
No they don't. The claim that javascript stores some numbers as an
integer type cannot be verified or dismissed based on any 'data' in the
article. The 'data' provided corresponds precisely with the results that
would be expected if javascript exclusively uses an IEE 754 double
precision floating point value for number storage.
I did experiment and I got a prove,
It is unlikely that whatever you perceive to be 'a prove' is anything of
the sort. If it were you would not be wasting my time referring to the
pages above, instead you could just post your 'prove' and make a real
point, Or, more likely, give someone the opportunity to explain why your
interpretation is incorrect.
but my testcases are not reliable because they are mine,
You have a long history of misconceiving even the simplest things so you
shouldn't expect anyone sane to take your word on anything.
Post them and find out.
So why would you not make your own then?
My own what? When you are referring me to a page that demonstrates
javascript behaving as if its only numeric type is an IEEE 754 double
precision floating point value in an effort to convince me that
javascript uses integer types for number storage there is not much point
in my posting code that demonstrates javascript behaving as if its only
numeric type was a double precision float.
Let's be clear about this; a demonstration that javascript uses an
integer type for numeric storage consists of code that exhibits
behaviour, or produces and outcome, that would be expected if it did use
an integer type for number storage, and would be impossible if it
exclusively used a double precision floating point.
Show that and you have made your point, I won't be holding my breath
Besides it would
show what kind of programmer *you* are.
Oh, sorry... You already stated several times that empiric
results are not reliable in any shell perform form.
I said nothing of the sort. Not least because that is so incoherent that
I have no idea what it is supposed to mean. I have pointed out that you
cannot draw valid conclusions about one thing by measuring another, but
you were unimpressed with that notion.
Keep reading then ECMA (Book Of Definitions, Chapter
4.3.20) and simply don't think about facts.
You never present any facts. You seem to think that making bizarre
assertions and then following them with code demonstrating javascript
behaving exactly as it should represent facts of some sort, but as you
never explain what you are talking about it is not even possible to work
out what these supposed 'facts' are even related to.
As Dag Sunde suggests - a nice smily at the end:
Hmm... I suppose one explanation for you habit of posting fictional
assertions to a technical newsgroup would be as a strange practical
joke. But there won't be many finding it funny.
Richard.