pint.pulsar_mjd.day_frac
- pint.pulsar_mjd.day_frac(val1, val2, factor=None, divisor=None)[source]
Return the sum of
val1
andval2
as two float64s.The returned floats are an integer part and the fractional remainder, with the latter guaranteed to be within -0.5 and 0.5 (inclusive on either side, as the integer is rounded to even).
The arithmetic is all done with exact floating point operations so no precision is lost to rounding error. It is assumed the sum is less than about 1e16, otherwise the remainder will be greater than 1.0.
- Parameters:
- Returns:
day, frac – Integer and fractional part of val1 + val2.
- Return type:
float64