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:

Average rating: 4.7  (24 votes)
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

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

 Your Name: City/Location: Comment: characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted. Answer 1 + 3 =
 Search for Custom Functions:

 Download the Custom Function Dashboard Widget for OS X Keep all the latest Custom Functions right at your fingertips!