mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
364 B
17 lines
364 B
11 years ago
|
=proto
|
||
11 years ago
|
duk_double_t duk_get_number(duk_context *ctx, duk_idx_t index);
|
||
11 years ago
|
|
||
|
=stack
|
||
|
[ ... val! ... ]
|
||
|
|
||
|
=summary
|
||
11 years ago
|
<p>Get the number value at <code>index</code> without modifying or coercing
|
||
|
the value. Returns <code>NaN</code> if the value is not a number or the
|
||
11 years ago
|
index is invalid.</p>
|
||
|
|
||
|
=example
|
||
11 years ago
|
printf("value: %lf\n", (double) duk_get_number(ctx, -3));
|
||
10 years ago
|
|
||
|
=introduced
|
||
|
1.0.0
|