module SQLite3ExtendFunction::Functions::Atan2
Public Class Methods
call(y, x)
click to toggle source
@param [Integer, Float] y @param [Integer, Float] x @return [Float] @raise [SQLite3::SQLException]
# File lib/sqlite3_extend_function/functions/atan2.rb, line 12 def call(y, x) Math.atan2(Float(y), Float(x)) rescue ArgumentError raise SQLite3::SQLException, 'invalid input syntax for type double precision' end