between this and JE::Object::Number is that that module implements
objects, while this module implements the primitive values.
Right now, this module simply uses Perl numbers underneath for storing
ECMAScript uses is system-dependent. If anyone requires IEEE 754
a patch would be welcome. :-)
The new method accepts a global (JE) object and a number as its
two arguments. If the latter is an object with a to_number method whose
return value isa JE::Number, that objects internal value
will be used. Otherwise the arg itself is used. (The precise details of
the behaviour of new when the second arg is a object are subject to
change.) It is numified Perl-style,
so nancy becomes NaN
and information becomes Infinity.
The value method produces a Perl scalar. The 0+ numeric operator is
overloaded and produces the same.
Stringification and boolification are overloaded and produce the same
The typeof and class methods produce the strings number and