PageRenderTime 49ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/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
Possible License(s): GPL-2.0
  1. // plusp().
  2. // General includes.
  3. #include "base/cl_sysdep.h"
  4. // Specification.
  5. #include "cln/real.h"
  6. // Implementation.
  7. namespace cln {
  8. bool plusp (const cl_R& x)
  9. {
  10. if (minusp(x))
  11. return false; // x<0 -> nein
  12. elif (zerop(x))
  13. return false; // x=0 -> nein
  14. else
  15. return true; // sonst ist x>0.
  16. }
  17. } // namespace cln