If you trust this link, click it to continue.
https://www.red-gate.com/simple-talk/databases/sql-server/t-sql-programming-sql-server/exploring-the-sql-server-choose-function/