MeshLib C Docs
Loading...
Searching...
No Matches
MRRound.h File Reference
#include <MRCMisc/exports.h>

Go to the source code of this file.

Functions

MRC_API int MR_roundToInt_double (double x)
MRC_API int MR_roundToInt_float (float x)

Function Documentation

◆ MR_roundToInt_double()

MRC_API int MR_roundToInt_double ( double x)

the same as (int)std::round( x ) for any x in int range (halves are rounded away from zero), but without a library call on any compiler Generated from function MR::roundToInt.

◆ MR_roundToInt_float()

MRC_API int MR_roundToInt_float ( float x)

the same as (int)std::round( x ) for any x in int range (halves are rounded away from zero), but without a library call on any compiler Generated from function MR::roundToInt.