Packages

Library: check if an integer is positive

Current section

Files

Jump to
positive src positive.erl
Raw

src/positive.erl

-module(positive).
-export([is_positive/1]).
is_positive(N) when is_integer(N) ->
N > 0;
is_positive(_) -> false.