© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
81 replies
Hannsen

❔ Determine if bit within a decimal value is set or not

Hi, i have property of type decimal . - I want to iterate bit 0 - 63 and check if the bit is actually set in the decimal value or not.
Anyone have an idea how i can do this? - With datatype int, it ain't a problem but getting such an info out of a large decimal (I allow only integers) number, i have no clue 😦
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

✅ Check if value is within range, throw exception if not
C#CC# / help
16mo ago
❔ NullReference exception thrown when assigning a value to a decimal??
C#CC# / help
4y ago
How to tell if a variable is a reference or value data type
C#CC# / help
12mo ago