#relational operators and floating poont comparisons
27 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
It returns 1 and 0 but they say the second function call is messed up why is that??
what does the tutorial say about it
it's all explained there, I'm not sure why you're asking here
It says it approaches zero
I dont wanna bottle things up id be wronging myself if i hid my thoughts of our interaction but Look English is not my first language.I ask here because I dont understand stuff.and i patiently wait for whoever is kind enough to help😇.if you ran out of patience for me then its cool ,others might chip in.coz you say that everytime I post and i dont know man thats how i feel.
can you link the tutorial and explain what you don't get about it
I
I dont understand why the second function call is wrong
because the numbers are too close to zero and multiplying with relEpsilon then produces a number which is too small
it's all explained though
a-1 is not close to zero though
a is almost 1 so a-1 is almost zero
Use absolute epsilon (as we did in our first approach) I dont see it in the first approach though
@red lotus you there??
first example is right there
@red lotus when they said first approach they meant this cide right here
that wouldn't make sense, because that's using a relative epsilon
Whats the diff for?@red lotus
Yeah its a floating point but like what's it got to do with absepilson
@red lotus you there?
yeah
but I don't know what to tell you, the learncpp tutorial explains everything in depth, you just need to read it
you're asking why some code does what it does but then the learncpp tutorial explains it literally one paragraph below the code block
Thats not it but ohkay
!solved