23 #include "message_var_float.h" 25 #include "goby/util/sci.h" 27 goby::transitional::DCCLMessageVarFloat::DCCLMessageVarFloat(
28 double max ,
double min ,
30 : DCCLMessageVar(), max_(max), min_(min), precision_(precision),
31 max_delta_(
std::numeric_limits<
double>::quiet_NaN())
35 void goby::transitional::DCCLMessageVarFloat::initialize_specific()
45 if (using_delta_differencing() && max_delta_ < 0)
46 max_delta_ = -max_delta_;
49 void goby::transitional::DCCLMessageVarFloat::pre_encode(
DCCLMessageVal& v)
53 v = util::unbiased_round(r, precision_);