module SQLite3ExtendFunction::Functions::Div
Public Class Methods
call(y, x)
click to toggle source
@param [Integer, Float] y @param [Integer, Float] x @return [Integer, Float] @raise [SQLite3::SQLException]
# File lib/sqlite3_extend_function/functions/div.rb, line 12 def call(y, x) Float(y).div(Float(x)) unless y.nil? || x.nil? rescue ArgumentError raise SQLite3::SQLException, 'invalid input syntax for type numeric' end