danicadamljanovic / freya

FREyA is a Natural Language Interface for Querying Ontologies
GNU Affero General Public License v3.0
31 stars 16 forks source link

Bug in method roundTwoDecimals of the class NumberUtil provoked by locale #14

Closed fanavarro closed 7 years ago

fanavarro commented 7 years ago

Bug in method roundTwoDecimals ofNumberUtils.java.

A comma may appear instead of a dot as decimal separator depending on the locale configuration. This provokes a number format exception on Double.valueOf. I've added the code to force a dot as decimal separator.