From 5e558fbaaed66d52dd729fd59b995af0dfcb1509 Mon Sep 17 00:00:00 2001 From: auron_x Date: Sun, 27 Aug 2006 21:52:58 +0000 Subject: [PATCH] *) hopefully fixed the wrong display of yacy-version git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2462 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/yacy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**