MCPcopy Create free account
hub / github.com/anjo76/angelscript / fractionf

Function fractionf

sdk/add_on/scriptmath/scriptmath.cpp:62–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60// function that simply returns the fractional part of the float value
61#if AS_USE_FLOAT
62float fractionf(float v)
63{
64 float intPart;
65 return modff(v, &intPart);
66}
67#else
68double fraction(double v)
69{

Callers

nothing calls this directly

Calls 1

modffFunction · 0.85

Tested by

no test coverage detected