Encr_NumToBinary (function reference)

By February 1, 2019 February 12th, 2019 Online 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

switchesreserved for future use, leave empty or set to "-Unused"
numberthe 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 14 to 17

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 14 to 17 –> Encr_NumToBinary (encrp4281) 2019-0212 17:37:15