Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
TypeFunctions.cpp
Go to the documentation of this file.
1 
12 #include "stdafx.h"
13 #include "TypeFunctions.h"
14 
15 
16 #include <math.h>
17 
18 
19 // get the closest integer
20 int roundnum( const double v ) {
21  return (int)floor( v + 0.5 );
22 }
int roundnum(const double v)
gets the closest integer to the argument
interfaces of type of variables function