lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r415022 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/ToStringUtils.cs
Date Sat, 17 Jun 2006 12:17:04 GMT
Author: aroush
Date: Sat Jun 17 05:17:03 2006
New Revision: 415022

URL: http://svn.apache.org/viewvc?rev=415022&view=rev
Log:
Lucene.Net 1.9 Build 005

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/ToStringUtils.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/ToStringUtils.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Util/ToStringUtils.cs?rev=415022&r1=415021&r2=415022&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/ToStringUtils.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Util/ToStringUtils.cs Sat Jun 17 05:17:03
2006
@@ -25,7 +25,10 @@
 		{
 			if (boost != 1.0f)
 			{
-				return "^" + boost.ToString();
+                float boostAsLong = (long) boost;
+                if (boostAsLong == boost)
+                    return "^" + boost.ToString(".0");
+                return "^" + boost.ToString();
 			}
 			else
 				return "";



Mime
View raw message