MCPcopy Create free account
hub / github.com/GPUOpen-Archive/Anvil / NormalizeExponentInFloatString

Function NormalizeExponentInFloatString

deps/glslang/gtests/HexFloat.cpp:425–444  ·  view source on GitHub ↗

Converts a floating point string so that the exponent prefix is 'e', and the exponent value does not have leading zeros. The Microsoft runtime library likes to write things like "2.5E+010". Convert that to "2.5e+10". We don't care what happens to strings that are not floating point strings.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TESTFunction · 0.85
TEST_PFunction · 0.85

Calls 3

c_strMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected