Skip to content

Commit

Permalink
fix for bhuga#4
Browse files Browse the repository at this point in the history
  • Loading branch information
brundage committed Jun 4, 2012
1 parent 8875dbe commit abd81fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/quantity/unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def calculate_value
@dimension.numerators.each do | component |
component.power.times do
# we might have a unit for a compound dimension, such as liters for length^3.
value *= @units[Quantity::Dimension.for(component.dimension)].value
value *= @units[Quantity::Dimension.for(component.dimension)].value if @units[Quantity::Dimension.for(component.dimension)]
end
end
@dimension.denominators.each do | component |
Expand Down

0 comments on commit abd81fd

Please sign in to comment.