lib/measures/BarAspectRatioStudy/measure.rb in openstudio-model-articulation-0.5.0 vs lib/measures/BarAspectRatioStudy/measure.rb in openstudio-model-articulation-0.6.0

- old
+ new

@@ -125,10 +125,11 @@ if floor_to_floor_height_ip <= 0 runner.registerError('Enter a positive floor height.') end # helper to make numbers pretty (converts 4125001.25641 to 4,125,001.26 or 4,125,001). The definition be called through this measure. - def neat_numbers(number, roundto = 2) # round to 0 or 2) + # round to 0 or 2) + def neat_numbers(number, roundto = 2) if roundto == 2 number = format '%.2f', number else number = number.round end