Java Double Number From toDoublePrecision(long fixedPrecisionOrdinate)

Here you can find the source of toDoublePrecision(long fixedPrecisionOrdinate)

Description

Converts the requested coordinate from fixed to double precision.

License

Open Source License

Declaration

private static double toDoublePrecision(long fixedPrecisionOrdinate) 

Method Source Code

//package com.java2s;
/* Copyright (c) 2014 Boundless and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Distribution License v1.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/org/documents/edl-v10.html
 *
 * Contributors:/*from  w  w w  . j  a va2  s . c  om*/
 * Gabriel Roldan (Boundless) - initial implementation
 */

public class Main {
    private static final double FIXED_PRECISION_FACTOR = 10_000_000D;

    /**
     * Converts the requested coordinate from fixed to double precision.
     */
    private static double toDoublePrecision(long fixedPrecisionOrdinate) {
        double ordinate = (double) fixedPrecisionOrdinate / FIXED_PRECISION_FACTOR;
        return ordinate;
    }
}

Related

  1. toDoubleDigit(int number)
  2. toDoubleMatrix(Number[][] matrix)
  3. toDoubleObject(Object obj)
  4. toDoublePow10(long m, int n)
  5. toDoublePow2(long m, int n)
  6. toDoublePrimitiveArray(final Double[] wrappedArray)
  7. toDoubleQuotes(String str)
  8. toDoubles(byte[] bytes)
  9. toDoubles(byte[] value, int offset, int num)