Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php nan

/*
NaN stands for Not a Number.

Impossible maths equation's output is NaN

PHP has a function to check if it is not a number.

is_nan()

the PHP var_dump() function returns the data type
*/

<?php
  $x = acos(8);
  var_dump($x);
?>
  
#This outputs NaN
 
PREVIOUS NEXT
Tagged: #php #nan
ADD COMMENT
Topic
Name
5+4 =