The idiom "your number is up" means that your luck has run out and something bad is going to happen to you. It is often used to indicate that a person is about to face a negative consequence or punishment for something they have done wrong.
For example, if someone has been breaking the law and they are caught by the police, you could say "their number is up" because they are now going to face the consequences of their actions.
The phrase can also be used in a more general sense to mean that someone's time has come to an end. For instance, if someone has been in a position of power for a long time and they are suddenly forced to resign, you could say "their number is up" because their time in that role has come to an end.
Overall, "your number is up" is a warning that something bad is about to happen, and it is often used to indicate that someone is about to face the consequences of their actions.
• After years of smoking and ignoring his health, the doctor told him his number was up.
• I heard that the boss is going to fire someone soon, and I'm afraid my number is up.
• The company had been cutting corners for years, and now their number was up when the scandal broke out.
• I'm sorry, but your number is up. You lost the game.
• I can't believe he got caught by the police. It seems like his number was up.
• She knew that her time was running out and her number was up, so she spent her last days with her loved ones.