Learn R Programming

gethr (version 0.1.0)

is.wholenumber: Whole numbers identification.

Description

is.wholenumber returns whether a value is a whole number.

Usage

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

Arguments

x

Data - Element to check whether it is a whole number.

tol

Double - Range to determine if the number is a whole number.

Value

Boolean - true if the input is a whole number, false otherwise.

See Also

Other utils functions: dec_to_hex, get_network_id, get_post, get_rpc_address, hex_to_dec, hex_to_text, process_block, process_log, process_receipt, process_transaction, set_network_id, set_rpc_address, text_to_hex

Examples

Run this code
# NOT RUN {
is.wholenumber(20)
is.wholenumber(20.3)
is.wholenumber('no')

# }

Run the code above in your browser using DataLab