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 On Oct 16, 2012 5:25 AM, "Brandon Harvey" <[email protected]> wrote: > 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 > [email protected] > http://groups.google.com/group/v8-users -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
