public final class SignificantDigitsType
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DIGITS_15
15-digits
|
static int |
G_17
17-digits by formatting the value with "G17".
|
static int |
ROUNDING_17
17-digits by rounding the value.
|
public static final int DIGITS_15
public static final int G_17
Remarks
For some double values, "G17" may given different value than the original/literal one input by user. For example, double value 0.15 will be output as 0.14999999999999999; double value 1.0E-16 will be output as 9.9999999999999998E-17. Ms excel's handles those values inconsistently, it saves 0.15 as 0.15 in the xlsx file, but for 1.0E-16 the saved value in the xlsx file is 9.9999999999999998E-17.public static final int ROUNDING_17
Remarks
This type generally outputs the value as the original/literal one input by user. For 0.15 it produces "0.15" and for 1.0E-16 it produces "1.0E-16". But there are also some special cases which may give different values than the literal. For example, when rounding 208435494.96478021 to 17-digits("0.#################"), the output is 208435494.96478.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.