Searched refs:num (Results 1 - 25 of 367) sorted by relevance

1234567891011>>

/openjdk10/nashorn/test/script/basic/
H A DNASHORN-122.js31 function num(str) { print("Number('" + str + "') = " + Number(str)); } function
33 num("0x00007");
34 num("0xCAFEBABE");
35 num("0xFE");
36 num("0xEF");
H A DNASHORN-12.js70 var num = new Number(0.0);
73 num.toPrecision(0);
74 fail("#9: num.toPrecision(0) should have been thrown RangeError");
82 num.toPrecision(22);
83 fail("#11: num.toPrecision(22) should have been thrown RangeError");
90 num = new Number(23.4718);
92 if (num.toPrecision(1) != "2e+1") {
93 fail("#13: toPrecision(1) gives " + num.toPrecision(1));
96 if (num.toPrecision(2) != "23") {
97 fail("#14: toPrecision(2) gives " + num
[all...]
H A Dsealfreeze.js31 var obj = { num: Math.E };
40 print("deleted num? " + (delete obj.num));
41 print("num = " + obj.num);
44 print("assign PI to num");
45 obj.num = Math.PI;
46 print("num = " + obj.num);
52 print("assign 1729 to num");
[all...]
H A Dextensibility.js33 var obj = { num: 45.0 };
41 obj.num = Math.PI;
42 print(obj.num);
46 obj.num = Math.E;
47 print(obj.num);
/openjdk10/jdk/src/jdk.rmic/share/classes/sun/tools/asm/
H A DNumberConstantData.java41 Number num; field in class:NumberConstantData
46 NumberConstantData(ConstantPool tab, Number num) { argument
47 this.num = num;
54 if (num instanceof Integer) {
56 out.writeInt(num.intValue());
57 } else if (num instanceof Long) {
59 out.writeLong(num.longValue());
60 } else if (num instanceof Float) {
62 out.writeFloat(num
[all...]
/openjdk10/hotspot/src/share/vm/prims/
H A DjvmtiUtil.hpp50 static const char* error_name(int num) { return _error_names[num]; } // To Do: add range checking argument
54 static const bool event_threaded(int num) { argument
55 if (num >= JVMTI_MIN_EVENT_TYPE_VAL && num <= JVMTI_MAX_EVENT_TYPE_VAL) {
56 return _event_threaded[num];
58 if (num >= EXT_MIN_EVENT_TYPE_VAL && num <= EXT_MAX_EVENT_TYPE_VAL) {
H A DjvmtiTrace.hpp82 static jbyte trace_flags(int num) { return _trace_flags[num]; } argument
83 static jbyte event_trace_flags(int num) { return _event_trace_flags[num]; } argument
84 static const char* function_name(int num) { return _function_names[num]; } // To Do: add range checking argument
86 static const char* event_name(int num) { argument
88 if (num >= JVMTI_MIN_EVENT_TYPE_VAL && num <= JVMTI_MAX_EVENT_TYPE_VAL) {
89 return _event_names[num];
[all...]
/openjdk10/jdk/src/java.security.jgss/share/classes/sun/security/krb5/internal/util/
H A DKrbDataOutputStream.java48 public void write32(int num) throws IOException { argument
50 bytes[0] = (byte)((num & 0xff000000) >> 24 & 0xff);
51 bytes[1] = (byte)((num & 0x00ff0000) >> 16 & 0xff);
52 bytes[2] = (byte)((num & 0x0000ff00) >> 8 & 0xff);
53 bytes[3] = (byte)(num & 0xff);
57 public void write16(int num) throws IOException { argument
59 bytes[0] = (byte)((num & 0xff00) >> 8 & 0xff);
60 bytes[1] = (byte)(num & 0xff);
64 public void write8(int num) throws IOException { argument
65 write(num
[all...]
H A DKrbDataInputStream.java77 * @param num the number of bytes to be read.
81 public int read(int num) throws IOException { argument
82 byte[] bytes = new byte[num];
83 if (read(bytes, 0, num) != num) {
87 for (int i = 0; i < num; i++) {
89 result |= (bytes[i] & 0xff) << (num - i - 1) * 8;
/openjdk10/jdk/test/java/io/Serializable/parents/
H A DOriginalClass.java62 int num; field in class:ASubClass
64 ASubClass(int num) { argument
65 this.num = num;
69 return ("\nNum: " + num);
H A DEvolvedClass.java76 int num; field in class:ASubClass
79 ASubClass(int num, String name) { argument
81 this.num = num;
85 return (super.toString() + "\nNum: " + num);
/openjdk10/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/regexp/joni/
H A DScannerSupport.java57 int num = 0; // long ???
61 final int onum = num;
62 num = num * 10 + EncodingHelper.digitVal(c);
63 if (((onum ^ num) & INT_SIGN_BIT) != 0) {
72 return num;
77 int num = 0;
82 final int onum = num;
84 num = (num <<
[all...]
H A DStackEntry.java78 void setRepeatNum(final int num) { argument
79 E3 = num;
95 /* memory num */
96 void setMemNum(final int num) { argument
97 E1 = num;
128 void setNullCheckNum(final int num) { argument
129 E1 = num;
151 void setCallFrameNum(final int num) { argument
152 E2 = num;
H A DRegion.java30 public Region(final int num) { argument
31 this.numRegs = num;
32 this.beg = new int[num];
33 this.end = new int[num];
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/util/xml/impl/
H A DReaderUTF16.java72 int num = 0;
75 while (num < len) {
77 return (num != 0) ? num : -1;
80 num++;
83 while (num < len) {
85 return (num != 0) ? num : -1;
88 num++;
91 return num;
[all...]
H A DReaderUTF8.java68 int num = 0;
70 while (num < len) {
72 return (num != 0) ? num : -1;
92 num++;
94 return num;
/openjdk10/jdk/test/java/math/BigInteger/
H A DProbablePrime.java33 BigInteger num = new BigInteger("4");
41 if((b=num.isProbablePrime(certainties[i])) !=
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/lib/
H A DExsltMath.java200 * @param num A number
203 public static double abs(double num) argument
205 return Math.abs(num);
211 * @param num A number
214 public static double acos(double num) argument
216 return Math.acos(num);
222 * @param num A number
225 public static double asin(double num) argument
227 return Math.asin(num);
233 * @param num
236 atan(double num) argument
259 cos(double num) argument
270 exp(double num) argument
281 log(double num) argument
314 sin(double num) argument
325 sqrt(double num) argument
336 tan(double num) argument
[all...]
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xpath/internal/operations/
H A DMinus.java50 return new XNumber(left.num() - right.num());
62 public double num(XPathContext xctxt) method in class:Minus
66 return (m_left.num(xctxt) - m_right.num(xctxt));
H A DMod.java49 return new XNumber(left.num() % right.num());
61 public double num(XPathContext xctxt) method in class:Mod
65 return (m_left.num(xctxt) % m_right.num(xctxt));
H A DMult.java49 return new XNumber(left.num() * right.num());
61 public double num(XPathContext xctxt) method in class:Mult
64 return (m_left.num(xctxt) * m_right.num(xctxt));
H A DPlus.java49 return new XNumber(left.num() + right.num());
61 public double num(XPathContext xctxt) method in class:Plus
65 return (m_right.num(xctxt) + m_left.num(xctxt));
H A DDiv.java49 return new XNumber(left.num() / right.num());
61 public double num(XPathContext xctxt) method in class:Div
65 return (m_left.num(xctxt) / m_right.num(xctxt));
H A DNeg.java47 return new XNumber(-right.num());
59 public double num(XPathContext xctxt) method in class:Neg
63 return -(m_right.num(xctxt));
/openjdk10/jdk/src/java.base/share/classes/sun/security/x509/
H A DSerialNumber.java53 * @param num the BigInteger number used to create the serial number.
55 public SerialNumber(BigInteger num) { argument
56 serialNum = num;
62 * @param num the BigInteger number used to create the serial number.
64 public SerialNumber(int num) { argument
65 serialNum = BigInteger.valueOf(num);

Completed in 207 milliseconds

1234567891011>>