Community & Support
Learn
Marketplace
Discussions
Categories
Discussions
General
Platform
Academic
Partner
Regional
User Groups
Documentation
Events
Altair Exchange
Share or Download Projects
Resources
News & Instructions
Programs
YouTube
Employee Resources
This tab can be seen by employees only. Please do not share these resources externally.
Groups
Join a User Group
Support
Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
bitmask operations?
harri678
Hi.
is there any way to use some kind of bitmask operations in the "generate attributes" operator? I have an integer with bits 2^0-4 used for bit information andI want to generate binominal attributes based on one bit's value...
Greetings,
Harald
Find more posts tagged with
AI Studio
Accepted answers
All comments
land
Hi Harald,
although there aren't any bit mask operations available directly, you can use the modulo operator for simulating them. To test if the first bit is set, just use the modulo 2 operation for the higher bit n use this forumlar:
(x % 2^(n+1) - x % 2^n) / 2^n
Greetings,
Sebastian
harri678
thanks!
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups