@rickosborne/rebound
Version:
Rick Osborne's utilities for working with bounded numbers
15 lines (14 loc) • 367 B
JavaScript
import { Rebound } from "./rebound.mjs";
const real255 = Rebound.buildType("Real255").fromInclusive(0).toInclusive(255).reals().build();
const toReal255 = real255.fromNumberWith({ ifPresent: true });
const {
assert: assertReal255,
guard: isReal255
} = real255;
export {
assertReal255,
isReal255,
real255,
toReal255
};
//# sourceMappingURL=real255.mjs.map