IntRounded

class rubin_sim.scheduler.utils.IntRounded(inval, scale=100000.0)

Bases: object

Class to help force comparisons be made on scaled up integers, preventing machine precision issues cross-platforms

Parameters:
invalnumber-like thing

Some number that we want to compare

scalefloat (1e5)

How much to scale inval before rounding and converting to an int.