@spiceErrorCheck<EOL>def brcktd(number, end1, end2):
number = ctypes.c_double(number)<EOL>end1 = ctypes.c_double(end1)<EOL>end2 = ctypes.c_double(end2)<EOL>return libspice.brcktd_c(number, end1, end2)<EOL>
Bracket a number. That is, given a number and an acceptable
interval, make sure that the number is contained in the
interval. (If the number is already in the interval, leave it
alone. If not, set it to the nearest endpoint of the interval.)

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/brcktd_c.html

:param number: Number to be bracketed.
:type number: float
:param end1: One of the bracketing endpoints for number.
:type end1: float
:param end2: The other bracketing endpoint for number.
:type end2: float
:return: value within an interval
:rtype: float