class BCDice::CommonCommand::AddDice::Node::DivideWithRoundingUp
除算(切り上げ)のノード
Constants
- ROUNDING_METHOD
端数処理方法を示す記号
Private Instance Methods
divide_and_round(dividend, divisor, _round_type)
click to toggle source
除算および端数処理を行う @param (see DivideWithGameSystemDefault#divide_and_round
) @return [Integer]
# File lib/bcdice/common_command/add_dice/node.rb, line 291 def divide_and_round(dividend, divisor, _round_type) (dividend.to_f / divisor).ceil end