Sha256: 3ec57de8da46e770af14815683953fb005952c64d4f9fce0d47f51a99ae35bc3

Contents?: true

Size: 140 Bytes

Versions: 11

Compression:

Stored size: 140 Bytes

Contents

require_relative '../function'

Dentaku::AST::Function.register(:round, :numeric, ->(numeric, places=nil) {
  numeric.round(places || 0)
})

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dentaku-2.0.11 lib/dentaku/ast/functions/round.rb
dentaku-2.0.10 lib/dentaku/ast/functions/round.rb
dentaku-2.0.9 lib/dentaku/ast/functions/round.rb
dentaku-2.0.8 lib/dentaku/ast/functions/round.rb
dentaku-2.0.7 lib/dentaku/ast/functions/round.rb
dentaku-2.0.6 lib/dentaku/ast/functions/round.rb
dentaku-2.0.5 lib/dentaku/ast/functions/round.rb
dentaku-2.0.4 lib/dentaku/ast/functions/round.rb
dentaku-2.0.3 lib/dentaku/ast/functions/round.rb
dentaku-2.0.2 lib/dentaku/ast/functions/round.rb
dentaku-2.0.1 lib/dentaku/ast/functions/round.rb