- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for ToFloat (0.11 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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)