1. in creative mode right click a single item (not multislot) within the creative inventory
2. enter any number in the popup window that the cargo space can handle
3. attempt to place that amount into another inventory (storage block, factory)
At this point the game will place 9999999 of the item into the inventory regardless of amount selected.