SQLite Forum

Math functions for arguments outside the domain should raise exception according to SQL Standard
Login
How about adding 2 argument versions where the second argument is an onError argument which explicitly states what you want it to do in that case?

That would put it in the hands of the query writer as opposed to being in the hands of the system owner in the environment variable version. Which is better I guess would be debatable.