test/jdk/internal/math/FloatingDecimal/OldFloatingDecimalForTest.java

Print this page
rev 13339 : Move sun.misc math support classes to jdk.internal.math


   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 //package sun.misc;
  25 
  26 import java.util.regex.*;
  27 
  28 public class OldFloatingDecimalForTest{
  29     boolean     isExceptional;
  30     boolean     isNegative;
  31     int         decExponent;
  32     char        digits[];
  33     int         nDigits;
  34     int         bigIntExp;
  35     int         bigIntNBits;
  36     boolean     mustSetRoundDir = false;
  37     boolean     fromHex = false;
  38     int         roundDir = 0; // set by doubleValue
  39 
  40     /*
  41      * The fields below provides additional information about the result of
  42      * the binary to decimal digits conversion done in dtoa() and roundup()
  43      * methods. They are changed if needed by those two methods.
  44      */




   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 //package jdk.internal.math;
  25 
  26 import java.util.regex.*;
  27 
  28 public class OldFloatingDecimalForTest{
  29     boolean     isExceptional;
  30     boolean     isNegative;
  31     int         decExponent;
  32     char        digits[];
  33     int         nDigits;
  34     int         bigIntExp;
  35     int         bigIntNBits;
  36     boolean     mustSetRoundDir = false;
  37     boolean     fromHex = false;
  38     int         roundDir = 0; // set by doubleValue
  39 
  40     /*
  41      * The fields below provides additional information about the result of
  42      * the binary to decimal digits conversion done in dtoa() and roundup()
  43      * methods. They are changed if needed by those two methods.
  44      */