Learn R Programming

kstMatrix (version 2.2-1)

kmdoubleequal: Test two double numbers on equity with a certain tolerance

Description

Test two double numbers on equity with a certain tolerance

Usage

kmdoubleequal(x, y, tol = sqrt(.Machine$double.eps))

Value

Boolean for (approximate) equity

Arguments

x

First double to compare

y

Second double to compare

tol

Tolerance optional)

See Also

Other Utilities: kmcolors(), kmsetiselement(), kmsymmsetdiff()

Examples

Run this code
kmdoubleequal(0.5+0.5, 1)

Run the code above in your browser using DataLab