diff --git a/include/click/tsctimestamp.hh b/include/click/tsctimestamp.hh
index f1c0560055440f0c47172e2c6d0bc7b1ce6711e0..fe5b6cfccff022f19ed775945a124edbf113f892 100644
--- a/include/click/tsctimestamp.hh
+++ b/include/click/tsctimestamp.hh
@@ -80,7 +80,7 @@ class TSCTimestamp {
      * @brief returns the total number of nsecs represented by this timestamp
      */
     inline double nsecval() {
-        return (double)val / ((double)cycles_hz_warp() / 1000000000.0d);
+        return (double)val / ((double)cycles_hz_warp() / 1000000000.0f);
     }
 
     inline int64_t tsc_val() {