fix.fp: Round floating point values that are with tolerance of...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/fix.fp.R

Description

This function returns a numeric value that is integer if it is within the specified tolerance of being integer. Otherwise, the given argument value is returned.

Usage

1
fix.fp(z, tol = 1e-04)

Arguments

z

A numeric floating or integer value

tol

The tolerance used to determine how close argument z is an integer

Value

A numeric value.

Author(s)

Frederick Novomestky fnovomes@poly.edu

References

Ignizio, J. P. (1976). Goal Programming and Extensions, Lexington Books, D. C. Heath and Company.

See Also

llgptab

Examples

1
2
3
4
5
fix.fp( 1.01 )
fix.fp( 1.001 )
fix.fp( 1.0001 )
fix.fp( 1.00001 )
fix.fp( 1.000001 )

goalprog documentation built on May 30, 2017, 5:07 a.m.

Related to fix.fp in goalprog...