Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) hopefully fixed the wrong display of yacy-version

auron_x5e558fbaaed6
diff --git a/source/yacy.java b/source/yacy.java
index 26c15de87..64fcf6487 100644
--- a/source/yacy.java
+++ b/source/yacy.java
@@ -175,7 +175,7 @@ public final class yacy {
* @return String with the combined version.
*/
public static float versvn2combinedVersion(float v, int svn) {
- return (float) (((double) v * 100000000.0 + ((double) svn)) / 100000000.0);
+ return (float) (Math.rint((v*100000000.0) + ((float)svn))/100000000);
}
/**