Skip to content

Instantly share code, notes, and snippets.

@rajithv
Created May 18, 2016 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajithv/f781b8d1b9ff03f570b6dda4e84d29b5 to your computer and use it in GitHub Desktop.
Save rajithv/f781b8d1b9ff03f570b6dda4e84d29b5 to your computer and use it in GitHub Desktop.
SymEngine::Integer implicit conversion to int
module SymEngine
class Integer
def to_int
self.to_s.to_i
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment