Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for toFloat (0.06 sec)

  1. src/main/java/org/codelibs/core/convert/FloatConversionUtil.java

         * @return 変換された{@link Float}
         */
        public static Float toFloat(final Object o) {
            return toFloat(o, null);
        }
    
        /**
         * {@link Float}に変換します。
         *
         * @param o
         *            変換元のオブジェクト
         * @param pattern
         *            パターン文字列
         * @return 変換された{@link Float}
         */
        public static Float toFloat(final Object o, final String pattern) {
            if (o == null) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/convert/FloatConversionUtilTest.java

     */
    public class FloatConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToFloat() throws Exception {
            assertEquals(new Float("1000.5"), FloatConversionUtil.toFloat("1,000.5"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveFloat() throws Exception {
            assertEquals(1000.5, FloatConversionUtil.toPrimitiveFloat("1,000.5"), 0);
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

                return DoubleConversionUtil.toDouble(o);
            } else if (type == Long.class) {
                return LongConversionUtil.toLong(o);
            } else if (type == Float.class) {
                return FloatConversionUtil.toFloat(o);
            } else if (type == Short.class) {
                return ShortConversionUtil.toShort(o);
            } else if (type == BigInteger.class) {
                return BigIntegerConversionUtil.toBigInteger(o);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. internal/s3select/json/record.go

    }
    
    // Set - sets the value for a column name.
    func (r *Record) Set(name string, value *sql.Value) (sql.Record, error) {
    	var v interface{}
    	if b, ok := value.ToBool(); ok {
    		v = b
    	} else if f, ok := value.ToFloat(); ok {
    		v = f
    	} else if i, ok := value.ToInt(); ok {
    		v = i
    	} else if t, ok := value.ToTimestamp(); ok {
    		v = sql.FormatSQLTimestamp(t)
    	} else if s, ok := value.ToString(); ok {
    		v = s
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. internal/s3select/sql/aggregation.go

    	case aggFnCount:
    		// For all non-null values, the count is incremented.
    		e.aggregate.runningCount++
    
    	case aggFnAvg, aggFnSum:
    		e.aggregate.runningCount++
    		// Convert to float.
    		f, ok := argVal.ToFloat()
    		if !ok {
    			return fmt.Errorf("Could not convert value %v (%s) to a number", argVal.value, argVal.GetTypeString())
    		}
    		argVal.setFloat(f)
    		err = e.aggregate.runningSum.arithOp(opPlus, argVal)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/config/bsbhv/BsElevateWordBhv.java

            try {
                final RESULT result = entityType.newInstance();
                result.setBoost(DfTypeUtil.toFloat(source.get("boost")));
                result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy")));
                result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime")));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/config/bsbhv/BsKeyMatchBhv.java

            try {
                final RESULT result = entityType.newInstance();
                result.setBoost(DfTypeUtil.toFloat(source.get("boost")));
                result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy")));
                result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime")));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

                        return;
                    }
                    List<Path> toLoad = new ArrayList<>();
                    Path root = defaultModelBuilder.getModelProcessor().locateExistingPom(rootDirectory);
                    toLoad.add(root);
                    while (!toLoad.isEmpty()) {
                        Path pom = toLoad.remove(0);
                        try {
                            ModelBuildingRequest gaBuildingRequest =
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top