I working on a dynamic drawer box component. It is designed so after the user enters dimensions of the opening and the cabinet depth, the drawer box is resized with the required clearance for the drawer glides. The drawer glides are available in 3" length increments so depth of the box–LenY–needs to be rounded down from the depth of the case to a number divisible by 3.
It would be hard to get a drawer that is 6 in. long to fit into a cabinet that is less that 6 in. deep. As Steve pointed out, I need to round down.
A drop down list could work but the drawer box gets used in projects that aren’t always standard depths. The component is designed to create drawer boxes that work with a specific range of drawer glides and it outputs ordering information to match what a specific drawer box maker uses to quote prices. Kind of limited use and so far, I’m the only one using it.