Skip to main content

Encr_NumToBinary (function reference)

By April 20, 2023April 25th, 2023Online 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 16 to FileMaker Pro 2023

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.

Used in example file

CheckSignature.fmp12

Related functionFunction badge

Encr_BinaryToNum

Related topics

Troi Encryptor Plug-in online help (overview)


Online Help Page for Troi Encryptor Plug-in for 16 to 2023 –> Encr_NumToBinary (encrp4281) 2023-0425 15:58:18