diff --git a/src/main/java/ortus/boxlang/runtime/util/LocalizationUtil.java b/src/main/java/ortus/boxlang/runtime/util/LocalizationUtil.java index f2fabb5a5..41db698c6 100644 --- a/src/main/java/ortus/boxlang/runtime/util/LocalizationUtil.java +++ b/src/main/java/ortus/boxlang/runtime/util/LocalizationUtil.java @@ -424,16 +424,13 @@ public static Double parseLocalizedCurrency( Object value, Locale locale ) { * @param value The value to be parsed * @param locale The locale object to apply to the parse operation * - * @return + * @return The parsed number or null if the value could not be parsed */ public static Double parseLocalizedNumber( Object value, Locale locale ) { - DecimalFormat parser = ( DecimalFormat ) DecimalFormat.getInstance( locale ); - - String parseable = StringCaster.cast( value ); - System.out.println( "parseable: " + parseable ); + DecimalFormat parser = ( DecimalFormat ) DecimalFormat.getInstance( locale ); + String parseable = StringCaster.cast( value ); ParsePosition parsePosition = new ParsePosition( 0 ); Number parseResult = parser.parse( StringCaster.cast( value ), parsePosition ); - System.out.println( "parsePosition: " + parsePosition.getIndex() ); return parsePosition.getIndex() == parseable.length() ? parseResult.doubleValue() : null; }