Class NativeNumber

    • Constructor Detail

      • NativeNumber

        NativeNumber​(double number)
    • Method Detail

      • init

        static void init​(Scriptable scope,
                         boolean sealed)
      • getClassName

        public java.lang.String getClassName()
        Description copied from class: ScriptableObject
        Return the name of the class.

        This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.

        Specified by:
        getClassName in interface Scriptable
        Specified by:
        getClassName in class ScriptableObject
      • execConstructorCall

        private static java.lang.Object execConstructorCall​(int id,
                                                            java.lang.Object[] args)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • num_to

        private static java.lang.String num_to​(double val,
                                               java.lang.Object[] args,
                                               int zeroArgMode,
                                               int oneArgMode,
                                               int precisionMin,
                                               int precisionOffset)
      • isFinite

        static java.lang.Object isFinite​(java.lang.Object val)
      • isNaN

        private static java.lang.Boolean isNaN​(java.lang.Number val)
      • isInteger

        private static boolean isInteger​(java.lang.Number val)
      • isDoubleInteger

        private static boolean isDoubleInteger​(java.lang.Double d)
      • isDoubleInteger

        private static boolean isDoubleInteger​(double d)
      • isSafeInteger

        private static boolean isSafeInteger​(java.lang.Number val)
      • isDoubleSafeInteger

        private static boolean isDoubleSafeInteger​(java.lang.Double d)
      • isDoubleSafeInteger

        private static boolean isDoubleSafeInteger​(double d)