Connecting Tech Pros Worldwide Help | Site Map

Why there is no distinction between signed and unsigned float types?

Newbie
 
Join Date: Oct 2009
Posts: 13
#1: 4 Weeks Ago
Hello,

When I try compiling this code:
Expand|Select|Wrap|Line Numbers
  1. signed float fl1=-10e-2;
with variable declarations of type signed float and unsigned float, gcc 3.3.5 outputs:
Expand|Select|Wrap|Line Numbers
  1. error: short, signed or unsigned invalid for `fl1'
"Why there is no distinction between signed and unsigned float type in C++?"

Thanks...
Newbie
 
Join Date: Oct 2009
Posts: 13
#2: 4 Weeks Ago

re: Why there is no distinction between signed and unsigned float types?


I searched google and found some satisfactory answers. (e.g. link. So, imo my problem is solved now. I should have tried searching before I posted this thread. Nevermind

Thanks anyways,
Reply