MCPcopy Create free account
hub / github.com/avaneev/biteopt / roundf

Function roundf

tests/tester_types.h:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17template< typename T >
18inline T roundf( const T d )
19{
20 return( d < (T) 0.0 ? -floor( (T) 0.5 - d ) : floor( d + (T) 0.5 ));
21}
22
23/**
24 * Structure holds details about test function.

Callers 1

calcKatsuuraFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected