up previous next
SimplestRatBetween

find simplest rational in a closed interval

Syntax
SimplestRatBetween(A: RAT, B: RAT): RAT

Description
This function finds the simplest rational in the closed interval with end points A and B . See also SimplestBinaryRatBetween.

Example
/**/  SimplestRatBetween(0.123, 0.456);
1/3

/**/  SimplestRatBetween(-3.14159, -2.71828);
-3

See Also