Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for ParseFloat (0.3 seconds)

  1. android/guava/src/com/google/common/primitives/Floats.java

       *
       * <p>Unlike {@link Float#parseFloat(String)}, this method returns {@code null} instead of
       * throwing an exception if parsing fails. Valid inputs are exactly those accepted by {@link
       * Float#valueOf(String)}, except that leading and trailing whitespace is not permitted.
       *
       * <p>This implementation is likely to be faster than {@code Float.parseFloat} if many failures
       * are expected.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java

         * @return The setting value as a float.
         */
        public float getAsFloat(final String key, final float defaultValue) {
            return getAs(key, defaultValue, Float::parseFloat);
        }
    
        /**
         * Retrieves a setting value as a boolean.
         * @param key The key of the setting.
         * @param defaultValue The default value if the setting is not found.
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/indexer/DocBoostMatcher.java

            }
            if (value instanceof Double) {
                return ((Double) value).floatValue();
            }
            if (value != null) {
                try {
                    return Float.parseFloat(value.toString());
                } catch (final NumberFormatException e) {
                    logger.warn("Failed to parse boost value: expression={}, value={}", boostExpression, value, e);
                    return 0.0f;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/util/DocumentUtilTest.java

            assertEquals(Long.parseLong(expected), DocumentUtil.getValue(doc, "key1", Long.class).longValue());
            assertEquals(Float.parseFloat(expected), DocumentUtil.getValue(doc, "key1", Float.class).floatValue());
            assertEquals(Double.parseDouble(expected), DocumentUtil.getValue(doc, "key1", Double.class).doubleValue());
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 01:46:45 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  5. src/cmd/asm/internal/asm/parse.go

    	value, err := strconv.ParseUint(str, 0, 64)
    	if err != nil {
    		p.errorf("%s", err)
    	}
    	return value
    }
    
    func (p *Parser) atof(str string) float64 {
    	value, err := strconv.ParseFloat(str, 64)
    	if err != nil {
    		p.errorf("%s", err)
    	}
    	return value
    }
    
    // EOF represents the end of input.
    var EOF = lex.Make(scanner.EOF, "EOF")
    
    func (p *Parser) next() lex.Token {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Feb 17 19:57:47 GMT 2026
    - 37.3K bytes
    - Click Count (0)
Back to Top