Skip to content
Snippets Groups Projects
Commit 3b5d4a82 authored by Johannes Eder's avatar Johannes Eder
Browse files

RED

parent a087878c
No related branches found
No related tags found
1 merge request!116Math: Add predicate to identify float objects
......@@ -228,6 +228,7 @@ public class BaseMathUtils {
* Number to test.
* @return boolean if the given number is an floating point number.
*/
// TODO: This method does not check for the described floating point types. Is this on purpose?
public static boolean isFloatNumber(Number value) {
return(value instanceof Byte || value instanceof Short || value instanceof Integer ||
value instanceof Long || value instanceof BigInteger);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment