Mass++ Common Libraries v2.7.5
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Macros
CoreFunctions
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
}
roundnum
int roundnum(const double v)
gets the closest integer to the argument
Definition:
TypeFunctions.cpp:20
TypeFunctions.h
interfaces of type of variables function
Generated on Sun Mar 18 2018 12:32:08 for Mass++ Common Libraries v2.7.5 by
1.8.6