mirror of
https://github.com/boostorg/interval.git
synced 2026-01-24 18:02:21 +00:00
Added integer extension; added certain and possible comparisons; reworked some documentation; corrected some bugs; removing check_nan from strict checking
[SVN r18305]
This commit is contained in:
26
test/integer.cpp
Normal file
26
test/integer.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
/* Boost test/integer.cpp
|
||||
* test int extension
|
||||
*
|
||||
* Copyright Guillaume Melquiond 2003
|
||||
* Permission to use, copy, modify, sell, and distribute this software
|
||||
* is hereby granted without fee provided that the above copyright notice
|
||||
* appears in all copies and that both that copyright notice and this
|
||||
* permission notice appear in supporting documentation.
|
||||
*
|
||||
* None of the above authors make any representation about the suitability
|
||||
* of this software for any purpose. It is provided "as is" without express
|
||||
* or implied warranty.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <boost/numeric/interval.hpp>
|
||||
#include <boost/numeric/interval/ext/integer.hpp>
|
||||
|
||||
typedef boost::numeric::interval<float> I;
|
||||
|
||||
int main() {
|
||||
I x, y;
|
||||
x = 4 - (2 * y + 1) / 3;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user