Changeset 89 in tspsg-svn for trunk/src/globals.h
- Timestamp:
- Jan 12, 2010, 4:27:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/globals.h
r87 r89 96 96 * \return \c true if \a x countains an integer, oherwise \c false. 97 97 */ 98 inline bool isInteger( qrealx)98 inline bool isInteger(double x) 99 99 { 100 qreali;100 double i; 101 101 return (modf(x, &i) == 0.0); 102 102 }
Note: See TracChangeset
for help on using the changeset viewer.