Fix to Korean number representation

This commit is contained in:
Stephen Seo 2024-04-16 20:37:15 +09:00
parent 8a47f3be5d
commit c99a2dceb0

View file

@ -143,7 +143,7 @@ std::u8string value_to_korean(unsigned long long value) {
}
if(temp = (value / 10000) % 10; temp > 0) {
if(!s.empty()) { s.push_back(' '); }
if(temp != 1) { s.append(digit_to_kword(temp)); }
if(temp > 0) { s.append(digit_to_kword(temp)); }
s.append(man);
} else if (requires_man) {
s.push_back(' ');