Template Function husarion_ugv_utils::common_utilities::SetPrecision

Function Documentation

template<typename T>
T husarion_ugv_utils::common_utilities::SetPrecision(T value, unsigned int precision)

Sets the precision of a floating point value.

Template Parameters:

T – The type of the value - must be floating point type.

Parameters:
  • value – The value to set the precision of.

  • precision – The precision to set.

Returns:

The value with the set precision.