MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / valueOf

Method valueOf

src/main/java/com/amazon/ion/Decimal.java:217–220  ·  view source on GitHub ↗
(BigInteger unscaledVal, int scale)

Source from the content-addressed store, hash-verified

215
216
217 public static Decimal valueOf(BigInteger unscaledVal, int scale)
218 {
219 return new Decimal(unscaledVal, scale);
220 }
221
222 public static Decimal valueOf(BigInteger unscaledVal, int scale,
223 MathContext mc)

Calls 2

toStringMethod · 0.65
compareMethod · 0.45

Tested by 15

testDecimalHashMethod · 0.76
coerceNumberToDecimalMethod · 0.76
testCommonEqualsMethod · 0.76
testParsingMethod · 0.76
badFormatMethod · 0.76
makeBigDecimalMethod · 0.76
decimalToLongMethod · 0.76