logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

JE::Object::Number - JavaScript Number object class

Description

       This class implements JavaScript Number objects for JE. The difference between this and JE::Number is
       that that module implements primitive number values, while this module implements the objects.

Methods

       See JE::Types for descriptions of most of the methods. Only what is specific to JE::Object::Number is
       explained here.

       value
           Returns a Perl scalar containing the number that the object holds.

       class
           Returns the string 'Number'.

Name

       JE::Object::Number - JavaScript Number object class

See Also

       JE
       JE::Types
       JE::Object
       JE::Number

perl v5.36.0                                       2023-08-25                            JE::Object::Number(3pm)

Synopsis

         use JE;
         use JE::Object::Number;

         $j = new JE;

         $js_num_obj = new JE::Object::Number $j, 953.7;

         $perl_scalar = $js_num_obj->value;

         0 + $js_num_obj;  # 953.7

See Also