Audacity 3.2.0
Functions
anonymous_namespace{AudacityMirProject.cpp} Namespace Reference

Functions

auto FormatTempo (double value)
 

Detailed Description


Audacity: A Digital Audio Editor

AudacityMirProject.cpp

Matthieu Hodgkinson

Function Documentation

◆ FormatTempo()

auto anonymous_namespace{AudacityMirProject.cpp}::FormatTempo ( double  value)

Definition at line 24 of file AudacityMirProject.cpp.

25{
26 auto rounded = std::to_string(std::round(value * 100) / 100);
27 rounded.erase(rounded.find_last_not_of('0') + 1, std::string::npos);
28 rounded.erase(rounded.find_last_not_of('.') + 1, std::string::npos);
29 return rounded;
30}
constexpr size_t npos(-1)
fastfloat_really_inline void round(adjusted_mantissa &am, callback cb) noexcept
Definition: fast_float.h:2512

References Tuple::detail::npos(), and fast_float::round().

Referenced by AudacityMirProject::ShouldBeReconfigured().

Here is the call graph for this function:
Here is the caller graph for this function: