naitoh / py2rb

A code translator using AST from Python to Ruby.
MIT License
134 stars 17 forks source link

Syntax error in maths #15

Open jayvdb opened 3 years ago

jayvdb commented 3 years ago
gap = max(1, floor(gap / 1.25))

is transpiled to

gap = (1, floor(gap / 1.25.to_f)).max

error:

syntax error, unexpected ',', expecting ')'