isNumeric

isNumeric(x)

Try it yourself:


isNumeric(): test numeric input

isNumeric(x) reports whether x is a numeric value. It is a first validation step when a calculation may receive text, empty data, or another type.

Use precise validation

Numeric is broader than the domain required by many formulas. Follow it with isFinite() to reject infinity, isInteger() for counts, or isPositive() for positive-only inputs.

Practical workflow

Validate before calling sqrt(), log(), or division. Each has additional domain rules, so a true isNumeric result alone is not sufficient.

Try Is Numeric in Calcul.io

Start with one of the editable examples above, then replace its arguments with your own values. Keeping the function on a separate calculator line makes the input and result easy to compare. For a longer workflow, assign the result to a variable or reference that line in the next expression.

Check the shown signature before adding optional arguments, and use the related-function links to compare operations with similar purposes.

All functions