Method: VoxelammingGem::BuildBox#round_numbers

Defined in:
lib/voxelamming_gem.rb

#round_numbers(num_list) ⇒ Object



340
341
342
343
344
345
346
# File 'lib/voxelamming_gem.rb', line 340

def round_numbers(num_list)
  if @is_allowed_float == 1
    num_list.map { |val| val.round(2) }
  else
    num_list.map { |val| val.round(1).floor }
  end
end