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.

24 lines
456 B

name: duk_get_number
proto: |
duk_double_t duk_get_number(duk_context *ctx, duk_idx_t idx);
stack: |
[ ... val! ... ]
summary: |
<p>Get the number value at <code>idx</code> without modifying or coercing
the value. Returns <code>NaN</code> if the value is not a number or the
index is invalid.</p>
example: |
printf("value: %lf\n", (double) duk_get_number(ctx, -3));
tags:
- stack
seealso:
- duk_get_number_default
introduced: 1.0.0