There are no integers in JavaScript so semantically they are identical. It's an implementation detail that 5.0 is sometimes represented as 5. Why do you want to distinguish them?
Vyacheslav Egorov
I'd like to be able to know whether not a particular Local<Value> (passed to me as part of any Arguments list) refers to an integral number (e.g. 5) or a floating-point style number (e.g. 5.0). Is there any way to make that distinction?
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
No this is not possible. No matter what they write in the source 5 or 5.0 it'll be represented as 5.
Vyacheslav Egorov