Definition
This idiom indicates that someone's time to die has come, suggesting that death is imminent.
When he found himself surrounded by the enemy, he knew his number was up.
While climbing Mount Everest, he felt his number was up, realizing he might not make it back alive.
With the heart attack, he knew his number was up.