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.
20 lines
313 B
20 lines
313 B
name: duk_push_nan
|
|
|
|
proto: |
|
|
void duk_push_nan(duk_context *ctx);
|
|
|
|
stack: |
|
|
[ ... ] -> [ ... NaN! ]
|
|
|
|
summary: |
|
|
<p>Pushes a <code>NaN</code> (not-a-number) to the stack.</p>
|
|
|
|
example: |
|
|
duk_push_nan(ctx);
|
|
|
|
printf("NaN is number: %d\n", (int) duk_is_number(ctx, -1));
|
|
|
|
tags:
|
|
- stack
|
|
|
|
introduced: 1.0.0
|
|
|