Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php form detect if number has decimals

function is_decimal( $val )
{
    return is_numeric( $val ) && floor( $val ) != $val;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #form #detect #number #decimals
ADD COMMENT
Topic
Name
6+2 =