name: duk_get_number proto: | duk_double_t duk_get_number(duk_context *ctx, duk_idx_t idx); stack: | [ ... val! ... ] summary: |

Get the number value at idx without modifying or coercing the value. Returns NaN if the value is not a number or the index is invalid.

example: | printf("value: %lf\n", (double) duk_get_number(ctx, -3)); introduced: 1.0.0