UNPKG

@rickosborne/rebound

Version:

Rick Osborne's utilities for working with bounded numbers

15 lines (14 loc) 353 B
import { Rebound } from "./rebound.mjs"; const real01 = Rebound.buildType("Real01").fromInclusive(0).toInclusive(1).reals().build(); const toReal01 = real01.fromNumberWith({ ifPresent: true }); const { assert: assertReal01, guard: isReal01 } = real01; export { assertReal01, isReal01, real01, toReal01 }; //# sourceMappingURL=real01.mjs.map