René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
Infinity [JavaScript snippet] | ||
function main() { var inf = 42 / 0; // true infinity... txt_out(inf); txt_out(inf / NaN); // NaN txt_out(inf * 42); // infinity txt_out(inf * 0); // NaN }
See also other Javascript snippets
|