Shopping Cart

Search:

Signup

Contact

FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

# FileMaker Pro Custom Functions

IsNthBinRoot ( Number ; Factor )

Rate this function:

Discuss this Custom Function

Tim Griffith, NA
NA

Calculates whether a number is a binary positional number, i.e., 001 is the first binary position, 010 (2) is the second binary position, 100 (4) is the third binary position, etc..

Sample Input:
 IsNthBinRoot ( 256 ; "" ) IsNthBinRoot ( 11 ; "" )
Sample Output:
 9, 0

Then copy & paste into FileMaker Advanced's Edit Custom Function window.

## Description:

IsNthBinRoot ( Number ; Factor ) Factor is initially an empty set "". Calculates whether a number is a binary positional number, i.e., 001 is the first binary position, 010 (2) is the second binary position, 100 (4) is the third binary position, etc.. All numbers that do not represent a binary position return zero ('0'). DEPENDENCY FUNCTION: 'IsNthRootNumToBin (decNumber ; binary )' This dependent function is comment included at the end of this function for your convenience.

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

## Discuss:

let(
[
lb=if(Number;lg(Number);1,3)
];
if(lb = int(lb);1+lb;0)
)

It's much shorter.

Erich, Germany
August 15, 2012 12:42pm