lib/dentaku/ast/functions/round.rb in dentaku-2.0.11 vs lib/dentaku/ast/functions/round.rb in dentaku-3.0.0

- old
+ new

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