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.
 
 
 
 
 
 

16 lines
338 B

=proto
double duk_require_number(duk_context *ctx, int index);
=stack
[ ... val! ... ]
=summary
<p>Like <tt><a href="#duk_get_number">duk_get_number()</a></tt>,
but throws an error if the value at <tt>index</tt> is not a number
or if the index is invalid.</p>
=example
printf("value: %lf\n", duk_require_number(ctx, -3));
=tags
stack