Encr_NumToBinary |
Converts a number to its binary representation.
Syntax
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 function
Encr_BinaryToNum |
Related topics
Troi Encryptor Plug-in online help (overview)