Skip to content

Commit

Permalink
remove systemoutput
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Jun 10, 2024
1 parent f2014c9 commit be76221
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}
Expand Down

0 comments on commit be76221

Please sign in to comment.