equal
deleted
inserted
replaced
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package sun.misc; |
26 package sun.misc; |
27 |
27 |
28 import sun.misc.FpUtils; |
|
29 import sun.misc.DoubleConsts; |
28 import sun.misc.DoubleConsts; |
30 import sun.misc.FloatConsts; |
29 import sun.misc.FloatConsts; |
31 import java.util.regex.*; |
30 import java.util.regex.*; |
32 |
31 |
33 public class FloatingDecimal{ |
32 public class FloatingDecimal{ |
2295 ((!leastZero) && round )) { |
2294 ((!leastZero) && round )) { |
2296 incremented = true; |
2295 incremented = true; |
2297 significand++; |
2296 significand++; |
2298 } |
2297 } |
2299 |
2298 |
2300 FloatingDecimal fd = new FloatingDecimal(FpUtils.rawCopySign( |
2299 FloatingDecimal fd = new FloatingDecimal(Math.copySign( |
2301 Double.longBitsToDouble(significand), |
2300 Double.longBitsToDouble(significand), |
2302 sign)); |
2301 sign)); |
2303 |
2302 |
2304 /* |
2303 /* |
2305 * Set roundingDir variable field of fd properly so |
2304 * Set roundingDir variable field of fd properly so |
2306 * that the input string can be properly rounded to a |
2305 * that the input string can be properly rounded to a |
2307 * float value. There are two cases to consider: |
2306 * float value. There are two cases to consider: |