]> sigrok.org Git - pulseview.git/blobdiff - pv/util.hpp
Make the analog value voltage display more sane
[pulseview.git] / pv / util.hpp
index 354013fe13e673ed3f82f4718505183c64b373b8..fab29a14f05ac21ea90b88d37088c2f9274a278f 100644 (file)
@@ -62,6 +62,11 @@ typedef boost::multiprecision::number<
        boost::multiprecision::cpp_dec_float<24>,
        boost::multiprecision::et_off> Timestamp;
 
+/**
+ * Chooses a prefix so that the value in front of the decimal point is between 1 and 999.
+ */
+SIPrefix determine_value_prefix(double v);
+
 /**
  * Formats a given timestamp with the specified SI prefix.
  *