Sha256: b3b64b1f94994f668e24dee2c13ad71071a80b703c47470273927f97f5deb8a9

Contents?: true

Size: 177 Bytes

Versions: 9

Compression:

Stored size: 177 Bytes

Contents

require_relative '../function'

Dentaku::AST::Function.register(:round, :numeric, lambda { |numeric, places = 0|
  Dentaku::AST::Function.numeric(numeric).round(places.to_i)
})

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dentaku-3.3.4 lib/dentaku/ast/functions/round.rb
dentaku-3.3.3 lib/dentaku/ast/functions/round.rb
dentaku-3.3.2 lib/dentaku/ast/functions/round.rb
dentaku-3.3.1 lib/dentaku/ast/functions/round.rb
dentaku-3.3.0 lib/dentaku/ast/functions/round.rb
dentaku-3.2.1 lib/dentaku/ast/functions/round.rb
dentaku-3.2.0 lib/dentaku/ast/functions/round.rb
dentaku-3.1.0 lib/dentaku/ast/functions/round.rb
dentaku-3.0.0 lib/dentaku/ast/functions/round.rb