class BCDice::CommonCommand::AddDice::Node::DivideWithRoundingOff
除算(四捨五入)のノード
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 306 def divide_and_round(dividend, divisor, _round_type) (dividend.to_f / divisor).round end