Skip to content

Commit

Permalink
Add copyright, re #4
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Jun 6, 2020
1 parent fafbb1b commit 002b3ca
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main/java/org/libj/math/LongDecimal.java
Original file line number Diff line number Diff line change
@@ -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 <http://opensource.org/licenses/MIT/>.
*/

package org.libj.math;

import java.math.BigDecimal;
Expand All @@ -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};
Expand Down
16 changes: 16 additions & 0 deletions src/test/java/org/libj/math/LongDecimalTest.java
Original file line number Diff line number Diff line change
@@ -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 <http://opensource.org/licenses/MIT/>.
*/

package org.libj.math;

import static org.junit.Assert.*;
Expand Down

0 comments on commit 002b3ca

Please sign in to comment.