Example usage for java.lang Double MAX_EXPONENT

List of usage examples for java.lang Double MAX_EXPONENT

Introduction

In this page you can find the example usage for java.lang Double MAX_EXPONENT.

Prototype

int MAX_EXPONENT

To view the source code for java.lang Double MAX_EXPONENT.

Click Source Link

Document

Maximum exponent a finite double variable may have.

Usage

From source file:Main.java

public static void main(String[] args) {

    System.out.println(Double.MAX_EXPONENT);
    System.out.println(Math.getExponent(Double.MAX_VALUE));
}

From source file:org.amanzi.neo.models.impl.network.NetworkModelTest.java

@Test
public void testCheckGetElement() throws ModelException {
    Envelope env = new Envelope(Double.MIN_EXPONENT, Double.MAX_EXPONENT, Double.MIN_NORMAL, Double.MAX_VALUE);
    List<Node> nodes = new ArrayList<Node>();
    Map<String, Object> properties = getProperties();
    properties.put(GEO_NODE_PROPERTIES.getLatitudeProperty(), Double.MIN_VALUE);
    properties.put(GEO_NODE_PROPERTIES.getLongitudeProperty(), Double.MAX_VALUE);
    Node mockedNode = getNodeMock(properties);
    nodes.add(mockedNode);/*from w w w.  ja v  a 2  s  .co  m*/
    Double[] min = new Double[] { env.getMinY(), env.getMinX() };
    Double[] max = new Double[] { env.getMaxY(), env.getMaxX() };
    doReturn(nodes.iterator()).when(indexModel).getNodes(NetworkElementType.SITE, Double.class, min, max,
            GEO_NODE_PROPERTIES.getLatitudeProperty(), GEO_NODE_PROPERTIES.getLongitudeProperty());

}