IS_NUMBER

@param	mixed	$value		Value to check
@return	boolean
334732
public static function IS_NUMBER($value = NULL) {
		$value		= self::flattenSingleValue($value);

		if (is_string($value)) {
			return False;
		}
		return is_numeric($value);
	}
1058883
private function check($value) {

		if(true === is_string($value) || is_numeric($value)) {

			if(true === $this -> strict) {
				return true === is_int($value);
			}

			return !in_array(preg_match('/^-?[0-9]+$/', $value), [false, 0]);
		}

		return false;
	}
950210
public function isValueValid($value) {
		return $value instanceof DataType\BooleanType || $value instanceof DataType\NumberType || $value instanceof Type\StructuredValueType || $value instanceof DataType\TextType;
	}
1006280
public function isValid($value)
    {
        if ($value instanceof LocaleCode) {
            $value = LocaleCode::canonicalize($value);
        }

        if (!is_string($value)) {
            $this->error(self::INVALID);
            return false;
        }

        $this->setValue($value);

        if (!in_array($value, $this->getLocaleList(), true)) {
            $this->error(self::NOT_FOUND);
        }

        return count($this->getMessages()) === 0;
    }
462108
protected function validateNumeric( $attribute, $value )
	{
		if ( !$this->hasAttribute( $attribute ) )
		{
			return true;
		}

		return is_null( $value ) || is_numeric( $value );
	}
1019605
public function isNumeric($value, $message = '')
    {
        $this->assertion->setActual($value);

        return $this->assertion->to->satisfy('is_numeric', $message);
    }
849786
public static function isValueType($value)
    {
        if (is_scalar($value) || $value === null) {
            return true;
        } elseif (is_array($value)) {
            $isScalar = true;
            array_walk_recursive($value,
                    function ($value) use (&$isScalar) {
                        if ($isScalar && !(is_scalar($value) || $value === null)) {
                            $isScalar = false;
                        }
                    });

            return $isScalar;
        } else {
            return false;
        }
    }
931253
public function isValid($value)
    {
        if (!is_string($value) && !is_int($value)) {
            $this->_error(self::INVALID);
            return false;
        }

        $this->_setValue($value);
        if (!ctype_xdigit((string) $value)) {
            $this->_error(self::NOT_HEX);
            return false;
        }

        return true;
    }
5120
private function isValidType($value): bool
    {
        if ($this->type instanceof DataType) {
            return $this->type->isTheTypeOf($value);
        }

        return true;
    }
634797
public function isValueValid($value) {
		return $value instanceof Type\DistanceType || $value instanceof DataType\NumberType || $value instanceof DataType\TextType;
	}
785074
public function isValid ($value)
    {
        if (!is_numeric($value)) {
            $this->error(self::INVALID);
            return false;
        }

        if (!preg_match('/^-?[0-9]+([.,][0-9]+)?$/', $value)) {
            $this->error(self::INVALID);
            return false;
        }

        return true;
    }
907280
public function isValueValid($value)
    {
        // If this value is a string and is mostly a number...
        if (is_string($value) && is_numeric($value))
        {
            // ...but contains an exponential value.
            if (0 <= strpos($value, 'e'))
            {
                // TODO: throw exception, maybe??
                trigger_error('FHIRDecimal should NOT contain exponential value.  "'.$value.'" seen.');
                return true;
            }
            // ...and does not contain a decimal.
            else if (false === strpos($value, '.'))
            {
                return ctype_digit($value);
            }
            // ...Assume we're OK for now...
            // TODO: Additional checks
            else
            {
                return true;
            }
        }
        else if (is_int($value) || is_float($value))
        {
            return true;
        }
        else
        {
            return false;
        }
    }
132040
protected function isValueTypeValidForExactConditions($value)
    {
        if (is_string($value) || is_bool($value) || is_int($value) || is_float($value)) {
            return true;
        }

        return false;
    }
20090
protected function isArrayWithNonNumericKeys($value)
    {
        if (!is_array($value)) {
            return false;
        }

        foreach ($value as $key=>$value) {
            if (is_numeric($key)) {
                return false;
            }
        }

        return true;
    }
2359
public static function isTruthy($value)
    {
        if (!$value) {
            return $value === 0 || $value === '0';
        } elseif ($value instanceof \stdClass) {
            return (bool) get_object_vars($value);
        } else {
            return true;
        }
    }
132525
def isNumber(self, value):
        
        try:
            str(value)
            float(value)
            return True

        except ValueError:
            return False
8139
public static function numericId ($value)
    {
        // Check type and characters
        if (!is_int($value)
            &&
            !(is_string($value) && preg_match('/^[0-9]+$/', $value))
        ) {
            return false;
        }

        // Check range
        if ($value > 0) {
            return false;
        }

        // Valid
        return true;
    }