MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / modff

Function modff

external/as_add_on/scriptmath/scriptmath.cpp:41–47  ·  view source on GitHub ↗

C++Builder doesn't define a non-standard "modff" function but rather an overload of "modf" for float arguments. However, BCC's float overload of fmod() is broken (QC #74816; fixed in C++Builder 2010).

Source from the content-addressed store, hash-verified

39// for float arguments. However, BCC's float overload of fmod() is broken (QC #74816; fixed
40// in C++Builder 2010).
41inline float modff (float x, float *y)
42{
43 double d;
44 float f = (float) modf((double) x, &d);
45 *y = (float) d;
46 return f;
47}
48#endif
49
50BEGIN_AS_NAMESPACE

Callers 1

fractionfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected