https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/trunc-truncf-truncl?view=msvc-170&redirectedfrom=MSDN
trunc, truncf, truncl | Microsoft Learn
API reference for trunc, truncf, truncl; which determine the nearest integer that is less than or equal to the specified floating-point value.
truncmicrosoftlearn