#relational operators and floating poont comparisons

27 messages · Page 1 of 1 (latest)

fossil dawn
loud domeBOT
#

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.

fossil dawn
# fossil dawn

It returns 1 and 0 but they say the second function call is messed up why is that??

red lotus
#

it's all explained there, I'm not sure why you're asking here

fossil dawn
fossil dawn
# red lotus it's all explained there, I'm not sure why you're asking here

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.

red lotus
#

can you link the tutorial and explain what you don't get about it

red lotus
#

it's all explained though

fossil dawn
red lotus
#

a is almost 1 so a-1 is almost zero

fossil dawn
fossil dawn
#

@red lotus you there??

red lotus
#

first example is right there

fossil dawn
# fossil dawn

@red lotus when they said first approach they meant this cide right here

red lotus
#

that wouldn't make sense, because that's using a relative epsilon

fossil dawn
fossil dawn
fossil dawn
#

@red lotus you there?

red lotus
#

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

fossil dawn
#

!solved