Sha256: e10e8d0fc2c8ff2889f9d5e1af91c0051c7a4786ea96076df1a0da1542cca675

Contents?: true

Size: 214 Bytes

Versions: 9

Compression:

Stored size: 214 Bytes

Contents

require_relative '../function'

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

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
dentaku-3.5.4 lib/dentaku/ast/functions/round.rb
dentaku-3.5.3 lib/dentaku/ast/functions/round.rb
dentaku-3.5.2 lib/dentaku/ast/functions/round.rb
dentaku_zevo-3.5.2 lib/dentaku/ast/functions/round.rb
dentaku-3.5.1 lib/dentaku/ast/functions/round.rb
dentaku-3.5.0 lib/dentaku/ast/functions/round.rb
dentaku-3.4.2 lib/dentaku/ast/functions/round.rb
dentaku-3.4.1 lib/dentaku/ast/functions/round.rb
dentaku-3.4.0 lib/dentaku/ast/functions/round.rb