diff --git a/src/main/java/org/libj/math/LongDecimal.java b/src/main/java/org/libj/math/LongDecimal.java index 5a96b859..8096352e 100644 --- a/src/main/java/org/libj/math/LongDecimal.java +++ b/src/main/java/org/libj/math/LongDecimal.java @@ -1,3 +1,19 @@ +/* Copyright (c) 2020 LibJ + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * You should have received a copy of The MIT License (MIT) along with this + * program. If not, see . + */ + package org.libj.math; import java.math.BigDecimal; @@ -6,6 +22,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +/** + * Fixed point representation of a decimal encoded in a {@code long}. + */ public final class LongDecimal { private static final Logger logger = LoggerFactory.getLogger(LongDecimal.class); private static final long[] e10 = {1L, 10L, 100L, 1000L, 10000L, 100000L, 1000000L, 10000000L, 100000000L, 1000000000L, 10000000000L, 100000000000L, 1000000000000L, 10000000000000L, 100000000000000L, 1000000000000000L, 10000000000000000L, 100000000000000000L, 1000000000000000000L}; diff --git a/src/test/java/org/libj/math/LongDecimalTest.java b/src/test/java/org/libj/math/LongDecimalTest.java index 9b361eb9..5fad7bd0 100644 --- a/src/test/java/org/libj/math/LongDecimalTest.java +++ b/src/test/java/org/libj/math/LongDecimalTest.java @@ -1,3 +1,19 @@ +/* Copyright (c) 2020 LibJ + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * You should have received a copy of The MIT License (MIT) along with this + * program. If not, see . + */ + package org.libj.math; import static org.junit.Assert.*;