Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
Functions
TypeFunctions.cpp File Reference

implements of type of variables function More...

#include "stdafx.h"
#include "TypeFunctions.h"
#include <math.h>
Include dependency graph for TypeFunctions.cpp:

Go to the source code of this file.

Functions

int roundnum (const double v)
 gets the closest integer to the argument More...
 

Detailed Description

implements of type of variables function

Author
S.Tanaka
Date
2007.02.21

Copyright(C) 2006-2014 Eisai Co., Ltd. All rights reserved.

Definition in file TypeFunctions.cpp.

Function Documentation

int roundnum ( const double  v)

gets the closest integer to the argument

Parameters
[in]vreal number value
Returns
the closest integer to the argument

Definition at line 20 of file TypeFunctions.cpp.

20  {
21  return (int)floor( v + 0.5 );
22 }