public static Decimal128 parse ( final String value ) { String lowerCasedValue = value . toLowerCase ( ) ; if ( NaN_STRINGS . contains ( lowerCasedValue ) ) { return NaN ; } if ( NEGATIVE_NaN_STRINGS . contains ( lowerCasedValue ) ) { return NEGATIVE_NaN ; } if ( POSITIVE_INFINITY_STRINGS . contains ( lowerCasedValue ) ) { return POSITIVE_INFINITY ; } if ( NEGATIVE_INFINITY_STRINGS . contains ( lowerCasedValue ) ) { return NEGATIVE_INFINITY ; } return new Decimal128 ( new BigDecimal ( value ) , value . charAt ( 0 ) == ' ' ) ; }
Returns a Decimal128 value representing the given String .