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

interfaces of type of variables function More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Detailed Description

interfaces 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.h.

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 }