Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricLengyel/Terathon-Math-Library
/ Ceil
Method
Ceil
TSMath.cpp:146–155 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
144
}
145
146
float Terathon::Ceil(const float& x)
147
{
148
if (Fabs(x) < 8388608.0F)
149
{
150
float r = x - 8388608.0F + 8388608.0F + 8388608.0F - 8388608.0F;
151
return ((r < x) ? r + 1.0F : r);
152
}
153
154
return (x);
155
}
156
157
#endif
158
Callers
nothing calls this directly
Calls
1
Fabs
Function · 0.85
Tested by
no test coverage detected