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).
| 39 | // for float arguments. However, BCC's float overload of fmod() is broken (QC #74816; fixed |
| 40 | // in C++Builder 2010). |
| 41 | inline 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 | |
| 50 | BEGIN_AS_NAMESPACE |