Java floor floor1e5(double coordinate)

Here you can find the source of floor1e5(double coordinate)

Description

floore

License

Apache License

Declaration

private static int floor1e5(double coordinate) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright 2012-2013 Trento RISE//  www  .  j  av  a  2  s.com
 * 
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 * 
 *        http://www.apache.org/licenses/LICENSE-2.0
 * 
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 ******************************************************************************/

public class Main {
    private static int floor1e5(double coordinate) {
        return (int) Math.floor(coordinate * 1e5);
    }
}

Related

  1. floor(int x, int quantum)
  2. floor(Integer a)
  3. Floor(Object in, int val)
  4. floor(String input)
  5. floor10(double a)
  6. floor2(int a, int preserveDigits)
  7. floor_double(double a)
  8. floor_double(double value)
  9. floor_double_long(double d)