[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kspread
From:       Raphael Langerhorst <raphael.langerhorst () kdemail ! net>
Date:       2006-01-28 20:56:38
Message-ID: 1138481798.644928.13383.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 503344 by raphael:

compile on OpenBSD 3.8

OpenBSD does not provide the round function yet.


 M  +3 -3      valuecalc.cc  


--- trunk/koffice/kspread/valuecalc.cc #503343:503344
@@ -512,9 +512,9 @@
   if (digits < 0)
     for (int i = 0; i < digits; ++i)
       val = div (val, 10);
-  
-  val = Value (::round (converter->asFloat (val).asFloat()));
-  
+
+  val = Value (int(converter->asFloat (val).asFloat()+0.5));
+
   if (digits > 0)
     for (int i = 0; i < digits; ++i)
       val = div (val, 10);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic