Java Double Number Truncate truncate(double[] arr, int m)

Here you can find the source of truncate(double[] arr, int m)

Description

truncate

License

Open Source License

Declaration

public static double[] truncate(double[] arr, int m) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double[] truncate(double[] arr, int m) {
        double[] tArr = new double[m];
        System.arraycopy(arr, 0, tArr, 0, m);
        return tArr;
    }/* w ww. j  av a2 s  . com*/
}

Related

  1. truncate(double value, int precision)
  2. truncate(double value, int truncation)
  3. truncate(double x)
  4. truncate(double x)
  5. truncate(double x, double gran)
  6. truncate(final double value, final double min, final double max)
  7. truncate(final double value, final double precision)
  8. truncate2decimals(double x)
  9. truncateDigits(double input, int numberDigits)