Index: trunk/BNC/src/RTCM3/bits.h
===================================================================
--- trunk/BNC/src/RTCM3/bits.h	(revision 10901)
+++ trunk/BNC/src/RTCM3/bits.h	(revision 10902)
@@ -156,5 +156,5 @@
 // RTCM3 CRS encoding
 //////////////////////////////////////////////////////////
-#define CRSTOINT(type, value) static_cast<type>(round(value))
+#define CRSTOINT(type, value) static_cast<type>(ceil(value))
 
 #define CRSADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
@@ -169,5 +169,5 @@
 // RTCM3 GPS EPH encoding
 //////////////////////////////////////////////////////////
-#define GPSTOINT(type, value) static_cast<type>(round(value))
+#define GPSTOINT(type, value) static_cast<type>(ceil(value))
 
 #define GPSADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
@@ -182,5 +182,5 @@
 // RTCM3 GLONASS EPH encoding
 //////////////////////////////////////////////////////////
-#define GLONASSTOINT(type, value) static_cast<type>(round(value))
+#define GLONASSTOINT(type, value) static_cast<type>(ceil(value))
 
 #define GLONASSADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
@@ -207,5 +207,5 @@
 // RTCM3 Galileo EPH encoding
 //////////////////////////////////////////////////////////
-#define GALILEOTOINT(type, value) static_cast<type>(round(value))
+#define GALILEOTOINT(type, value) static_cast<type>(ceil(value))
 
 #define GALILEOADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
@@ -220,5 +220,5 @@
 // RTCM3 BDS EPH encoding
 //////////////////////////////////////////////////////////
-#define BDSTOINT(type, value) static_cast<type>(round(value))
+#define BDSTOINT(type, value) static_cast<type>(ceil(value))
 
 #define BDSADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
@@ -233,5 +233,5 @@
 // RTCM3 SBAS EPH encoding
 //////////////////////////////////////////////////////////
-#define SBASTOINT(type, value) static_cast<type>(round(value))
+#define SBASTOINT(type, value) static_cast<type>(ceil(value))
 
 #define SBASADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \
