1 /* 2 * Copyright (C) 2010 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package libcore.math; 18 19 public final class MathUtils { MathUtils()20 private MathUtils() { } 21 22 /** 23 * An array with powers of ten that fit in the type <code>long</code> 24 * (<code>10^0,10^1,...,10^18</code>). 25 */ 26 public static final long[] LONG_POWERS_OF_TEN = new long[] { 27 1L, 28 10L, 29 100L, 30 1000L, 31 10000L, 32 100000L, 33 1000000L, 34 10000000L, 35 100000000L, 36 1000000000L, 37 10000000000L, 38 100000000000L, 39 1000000000000L, 40 10000000000000L, 41 100000000000000L, 42 1000000000000000L, 43 10000000000000000L, 44 100000000000000000L, 45 1000000000000000000L, 46 }; 47 48 } 49