ot::Cli::Utils::PercentageToString() method
Converts an encoded value to a percentage representation. The encoded @p aValue is assumed to be linearly scaled such that `0` maps to 0% and `0xffff` maps to 100%. The resulting string provides two decimal accuracy, e.g., "100.00", "0.00", "75.37".
Arguments
aValue
The encoded percentage value to convert.
aBuffer
A buffer to allocate the string from.
Return value
A pointer to the start of the string (null-terminated) representation of @p aValue.
ot::Cli::Utils::PercentageToString() is called by 3 functions and calls 2 functions:
![]()
ot::Cli::Utils::PercentageToString()
ot::Cli::Utils::PercentageToString() reads 1 variable:
![]()
ot::Cli::Utils::PercentageToString()