Skip to contents

Check whether a number is a positive integer

Usage

.isPosInt(x, tol = .Machine$double.eps^0.5)

Arguments

x

Numeric number to test

tol

Numeric tolerance of detection

Value

A logical value: whether the number is a positive integer.