is_int: Test for integer-ish-ness

is_intR Documentation

Test for integer-ish-ness

Description

Is x`` equivalent to the integer (rounded) version of x'? Works for doubles, etc.

Usage

is_int(x, tolerance = sqrt(.Machine$double.eps))

Arguments

x

numeric or integer

tolerance

passed to all.equal

Note

Probably someone else has implemented a better version


BAAQMD/qtytools documentation built on June 30, 2022, 6:07 p.m.