/cln-1.3.2/src/real/elem/cl_R_plusp.cc
# · C++ · 24 lines · 13 code · 7 blank · 4 comment · 1 complexity · afe837cf6da7ab7658cc4e6d52b7c288 MD5 · raw file
- // plusp().
- // General includes.
- #include "base/cl_sysdep.h"
- // Specification.
- #include "cln/real.h"
- // Implementation.
- namespace cln {
- bool plusp (const cl_R& x)
- {
- if (minusp(x))
- return false; // x<0 -> nein
- elif (zerop(x))
- return false; // x=0 -> nein
- else
- return true; // sonst ist x>0.
- }
- } // namespace cln