MCPcopy Create free account
hub / github.com/ZDoom/Raze / AddFloat

Method AddFloat

source/common/scripting/frontend/ast.cpp:204–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 Add(buf, len);
203 }
204 void AddFloat(double f, bool single)
205 {
206 char buf[32];
207 size_t len = mysnprintf(buf, countof(buf), "%.4f", f);
208 if (single)
209 {
210 buf[len++] = 'f';
211 buf[len] = '\0';
212 }
213 Add(buf, len);
214 }
215private:
216 FString Str;
217 size_t NestDepth;

Callers 1

PrintExprConstantFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected