module SQLite3ExtendFunction::Functions::Acos

SQLite3ExtendFunction::Functions::Acos

Public Class Methods

call(x) click to toggle source

@param [Integer, Float] x @return [Float] @raise [SQLite3::SQLException]

# File lib/sqlite3_extend_function/functions/acos.rb, line 11
def call(x)
  Math.acos(Float(x))
rescue ArgumentError
  raise SQLite3::SQLException, "invalid input syntax for type double precision: #{x}"
end