MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / formatShortWithOneDecimal

Function formatShortWithOneDecimal

src/OpenLoco/src/Localisation/Formatting.cpp:102–106  ·  view source on GitHub ↗

0x004963FC

Source from the content-addressed store, hash-verified

100
101 // 0x004963FC
102 static void formatShortWithOneDecimal(int16_t value, StringBuffer& buffer)
103 {
104 fmt::format_to(std::back_inserter(buffer), std::locale(), "{:L}", value / 10);
105 fmt::format_to(std::back_inserter(buffer), ".{}", value % 10);
106 }
107
108 // 0x004962F1
109 static void formatIntWithTwoDecimals(int32_t value, StringBuffer& buffer)

Callers 1

formatStringPartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected