the smallest float(4 bytes) > 1.0

R

remi

Uzytkownik "Miguel Gimenez said:
Can you do your homework?

no, no , no
programming is not my subject, but hobby. I need to pass this value to some
function so that it could operate on a scope [0, 1.0], instead of [0,1.0).
 
V

Victor Bazarov

remi said:
Can you do your homework?


no, no , no
programming is not my subject, but hobby. I need to pass this value to some
function so that it could operate on a scope [0, 1.0], instead of [0,1.0).

See 'FLT_EPSILON' in <cfloat>. Convert it to oct or hex yourself.

Also, you probably need to rewrite your function instead of trying to
coerce it into "correct" behaviour.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,661
Latest member
sxarexu

Latest Threads

Top