lib/dentaku/ast/functions/round.rb in dentaku-3.3.4 vs lib/dentaku/ast/functions/round.rb in dentaku-3.4.0

- old
+ new

@@ -1,5 +1,5 @@ require_relative '../function' Dentaku::AST::Function.register(:round, :numeric, lambda { |numeric, places = 0| - Dentaku::AST::Function.numeric(numeric).round(places.to_i) + Dentaku::AST::Function.numeric(numeric).round(Dentaku::AST::Function.numeric(places || 0).to_i) })