fix.fp {goalprog} | R Documentation |
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.
fix.fp(z, tol = 1e-04)
z |
A numeric floating or integer value |
tol |
The tolerance used to determine how close argument z is an integer |
A numeric value.
Frederick Novomestky fnovomes@poly.edu
Ignizio, J. P. (1976). Goal Programming and Extensions, Lexington Books, D. C. Heath and Company.
fix.fp( 1.01 ) fix.fp( 1.001 ) fix.fp( 1.0001 ) fix.fp( 1.00001 ) fix.fp( 1.000001 )