The new math functions follow the definitions used by PostgreSQL, foremost, but also MySQL and SQL Server where possible.