Standard approach without Total FP
Rather than make everyone actually deal with partial functions by checking the inputs or results of partial functions, programming languages generally will either:
- throw an error or exception of some sort either aborting the program entirely or providing a try/catch mechanism to handle this generically for a section of code
- run forever using 100% CPU if there's an infinite loop/recursion and no stack overflow or out of memory occurs