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

Function formatIntWithTwoDecimals

src/OpenLoco/src/Localisation/Formatting.cpp:109–113  ·  view source on GitHub ↗

0x004962F1

Source from the content-addressed store, hash-verified

107
108 // 0x004962F1
109 static void formatIntWithTwoDecimals(int32_t value, StringBuffer& buffer)
110 {
111 fmt::format_to(std::back_inserter(buffer), std::locale(), "{:L}", value / 100);
112 fmt::format_to(std::back_inserter(buffer), ".{:02}", value % 100);
113 }
114
115 // 0x00495D09
116 static void formatDateDMYFull(uint32_t totalDays, StringBuffer& buffer)

Callers 1

formatStringPartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected