Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
why we should not apply bitwise operators on float values?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
ani507
New Member
Join Date:
Jun 2010
Posts:
1
#1
why we should not apply bitwise operators on float values?
Jun 4 '10, 03:05 AM
if we did program using using bitwise opertors for float values it i showing error
newb16
Contributor
Join Date:
Jul 2008
Posts:
687
#2
Jun 4 '10, 07:13 AM
Because it makes little sense because of undefined internal representation - what would you like 1.75 & 2.5 to be?
Comment
Post
Cancel
Banfa
Recognized Expert
Expert
Join Date:
Feb 2006
Posts:
9067
#3
Jun 4 '10, 10:05 AM
Because the standard defines bitwise operations as only valid on integer types. No conforming compiler is likely to compile it.
Comment
Post
Cancel
donbock
Recognized Expert
Top Contributor
Join Date:
Mar 2008
Posts:
2427
#4
Jun 4 '10, 02:45 PM
What are you trying to accomplish?
Perhaps we can suggest a workable alternative if we understand the goal.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment