How to extract bits from a hexadecimal string #913
Answered
by
marcboulle
marcboulle
asked this question in
Q&A
-
|
This discussion stems from the question received in issue #742 I have a string value representing the status of equipment. |
Beta Was this translation helpful? Give feedback.
Answered by
marcboulle
Feb 5, 2026
Replies: 1 comment
-
|
Khiops dictionaries allow to extract such information using string rules: https://khiops.org/api-docs/kdic/string-rules/
Below is an example of a Khiops dictionary that extracts the 8 least significant bits of a hexadecimal string: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lucaurelien
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Khiops dictionaries allow to extract such information using string rules: https://khiops.org/api-docs/kdic/string-rules/
ToUpperto be case-insensitive.Translateto replace each hexadecimal character into the corresponding binary substring (e.g., "7" -> "0111", "A" -> "1010").Middle.Below is an example of a Khiops dictionary that extracts the 8 least significant bits of a hexadecimal string: