mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-26 16:26:06 -04:00
Fix rounding bug when displaying frequencies (#1801)
This commit is contained in:
parent
ac1d350aaf
commit
0f85f247b6
3 changed files with 5 additions and 4 deletions
|
@ -85,7 +85,7 @@ const tone_key_t tone_keys = {
|
|||
{"Senn. 32.768k", F2Ix100(32768.0)}};
|
||||
|
||||
std::string fx100_string(uint32_t f) {
|
||||
return to_string_dec_uint(f / 100) + "." + to_string_dec_uint(((f + 5) / 10) % 10);
|
||||
return to_string_dec_uint((f + 5) / 100) + "." + to_string_dec_uint(((f + 5) / 10) % 10);
|
||||
}
|
||||
|
||||
float tone_key_frequency(tone_index index) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue