1. /* sdfeform.cpp by K.Tsuru */
  2. // function ID 3404 DRADIX
  3. /*******************************
  4. SDouble class
  5. It converts SDouble x to m*10^e (|m| < 1.0)
  6. ********************************/
  7. #ifndef SN_H
  8. #include "sn.h"
  9. #endif
  10. SDouble SDtoE_Form(const SDouble& x, long* exp){
  11. SDouble X(x); // copy
  12. //exponent portion
  13. long e = X.DExp();
  14. *exp = e;
  15. //mantissa : Its absolute value is less than 1.0.
  16. return X.MultPow10(-e);
  17. }

sdfeform.cpp : last modifiled at 2016/03/31 19:41:44(442 bytes)
created at 2017/10/07 10:22:50
The creation time of this html file is 2017/10/07 11:29:39 (Sat Oct 07 11:29:39 2017).