Encr_NumToBinary (function reference)

By February 1, 2019June 10th, 2020Online Help, Troi Encryptor Plug-in
Troi Encryptor Plug-in for FileMaker Pro

Encr_NumToBinary

Converts a number to its binary representation.

SyntaxFunction badge

Encr_NumToBinary ( switches ; number )

Parameters

switches reserved for future use, leave empty or set to "-Unused"
number the number that needs to be converted to a binary

Returned Result

Data type returned

Text

Result

The number in binary notation.

Originated in

Troi Encryptor Plug-in 1.2

Compatibility

FileMaker Pro 15 to 19

Considerations

The maximum number to be converted = 4294967295

Example

Set Field [ result ; Encr_NumToBinary ( "-Unused" ; 2 ) ]

will return as result “10”

Set Field [ result ; Encr_NumToBinary ( "-Unused" ; 18 ) ]

will return as result “10010”

Example 2

This example uses a negative number:

Set Field [ result ; Encr_NumToBinary ( -2 ) ]

will return as result “11111111111111111111111111111110” which is the ones complement of 2.

Related functionFunction badge

Encr_BinaryToNum

Related topics

Troi Encryptor Plug-in online help (overview)


Online Help Page for Troi Encryptor Plug-in for 15 to 19 –> Encr_NumToBinary (encrp4281) 2020-0610 16:25:44