Tabnine Logo
DfpDec.dotrap
Code IndexAdd Tabnine to your IDE (free)

How to use
dotrap
method
in
org.apache.commons.math3.dfp.DfpDec

Best Java code snippets using org.apache.commons.math3.dfp.DfpDec.dotrap (Showing top 4 results out of 315)

origin: org.apache.commons/commons-math3

/** {@inheritDoc} */
@Override
public Dfp newInstance(final Dfp d) {
  // make sure we don't mix number with different precision
  if (getField().getRadixDigits() != d.getField().getRadixDigits()) {
    getField().setIEEEFlagsBits(DfpField.FLAG_INVALID);
    final Dfp result = newInstance(getZero());
    result.nans = QNAN;
    return dotrap(DfpField.FLAG_INVALID, "newInstance", d, result);
  }
  return new DfpDec(d);
}
origin: org.apache.commons/commons-math3

final Dfp result = newInstance(getZero());
result.nans = QNAN;
return dotrap(DfpField.FLAG_INVALID, trapName, x, result);
result = dotrap(DfpField.FLAG_INEXACT, trapName, x, result);
result = dotrap(DfpField.FLAG_INEXACT, trapName, x, result);
origin: io.virtdata/virtdata-lib-realer

/** {@inheritDoc} */
@Override
public Dfp newInstance(final Dfp d) {
  // make sure we don't mix number with different precision
  if (getField().getRadixDigits() != d.getField().getRadixDigits()) {
    getField().setIEEEFlagsBits(DfpField.FLAG_INVALID);
    final Dfp result = newInstance(getZero());
    result.nans = QNAN;
    return dotrap(DfpField.FLAG_INVALID, "newInstance", d, result);
  }
  return new DfpDec(d);
}
origin: io.virtdata/virtdata-lib-realer

final Dfp result = newInstance(getZero());
result.nans = QNAN;
return dotrap(DfpField.FLAG_INVALID, trapName, x, result);
result = dotrap(DfpField.FLAG_INEXACT, trapName, x, result);
result = dotrap(DfpField.FLAG_INEXACT, trapName, x, result);
org.apache.commons.math3.dfpDfpDecdotrap

Popular methods of DfpDec

  • <init>
    Create an instance from a String representation.
  • add
  • classify
  • copysign
  • equals
  • getDecimalDigits
    Get the number of decimal digits this class is going to represent. Default implementation returns #g
  • getField
  • getRadixDigits
  • getZero
  • intLog10
  • lessThan
  • newInstance
  • lessThan,
  • newInstance,
  • power10,
  • power10K,
  • round,
  • shiftRight,
  • subtract

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JTextField (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now