Anonymous
which is the encoding
Anonymous
then they take that encoding divide it by the maximum value that encoding can be
Anonymous
then take the difference of the range
Anonymous
then add the lowest value it can be
- Raymond
Alright, well you definitely lost me at the end but it's good to know there're ways around that issue
olli
so if you really want to be accurate you have to get limited to 6 for float and 14 for double
if you want to be accurate don't use floating points as defined by IEEE In computing, floating-point arithmetic (FP) is arithmetic using formulaic representation of real numbers as an approximation so as to support a trade-off between range and precision. This is not really a problem with C++ as IEEE defines the behavior to be so and C++ does not enforce vendors to implement IEEEE
olli
You would think that C++ would not have that basic issue but wow. Can't believe this is still an issue in 2018 in C++
The issue is not with C++ rather with the vendors and the CPU's http://eel.is/c++draft/basic.fundamental#8
Anonymous
but has more bytes
- Raymond
What am I doing wrong here?
- Raymond
if (InitialBTCTotalUSD < CurrentBTCTotalUSD) { if (CurrentLTCValue > InitialLTCValue) { //You can use multiple cout under each other cout << "Good news" << endl; cout << "You have some USD and LTC profit" << endl; cout << "You can collect them if you sell. Sooooo..." << endl; cout << "Sell! Sell! Sell!" << endl; } else { cout << "None of the conditions are met in both currencies profit" << endl; } } if (InitialBTCTotalUSD > CurrentBTCTotalUSD) { cout << "Buy Buy Buy" << endl; } if (InitialBTCTotalUSD == CurrentBTCTotalUSD) { cout << "Wait Wait Wait" << endl; } else { cout << "None of the conditions are met in both currencies profit" << endl; }
- Raymond
When I run this, I get ELSE function together with first if function
olli
When I run this, I get ELSE function together with first if function
because the else clause belongs to the "closest" if clause. if this is not the case if (InitialBTCTotalUSD == CurrentBTCTotalUSD), then else will be selected
- Raymond
Oh I see!
- Raymond
Awesome. Thank you
olli
you're welcome :)
- Raymond
See they don't teach you these tips and tricks in classes. When I try to enhance anything I learn I find so many things they didn't teach us
- Raymond
- Raymond
I meant to send a
- Raymond
👍
- Raymond
Wow I really suck at computers today
olli
if(cond1) {} else if (cond2) {} else {} The else block will only run if both cond1 and cond2 were `false
Anonymous
Hi!
Anonymous
Please from information wts api c++?
Anonymous
And books wts api c++?
Anonymous
Please)))
Anonymous
?
wts api c++ books
olli
wts api c++ books
Have you read the rules?
klimi
Yes
Good robot
Anonymous
klimi
WTF bud?
klimi
Why do you do this
klimi
/warn promo of java something
Anonymous
👍🖕
klimi
👍🖕
/warn offensive behaviour
⠠⠍⠥⠓⠁⠍⠍⠁⠙⠽⠥⠎⠥⠋
Softwarehere
Dima
PC SOFTWARE FALL CATALOGUE 1991
Karthi
thak you friends to joining me in this group.
Anonymous
Remote Desktop Services API Books? Yes!
Anonymous
What?
Book)))
Anonymous
Remote Desktop Services API c++ examples?
Ena
Hello guys, i already try for loop. But i cant explain it step by step. Can someone help ? Thank you 😊
Ena
/
Dima
Remote Desktop Services API c++ examples?
it's just some advanced networking
Dom
Pinned message readed ...
Dom
Thanks .
Mihail
it's just some advanced networking
Also uses a special protocol I think
Anonymous
Help wtsapi c++ information and book?
Anonymous
I got error :
Anonymous
Makefile:2: **** mising seprator. stop.
Anonymous
can any one plz tell me
BinaryByter
MAKEFILES NEED TABS
Anonymous
how i overcome with this
BinaryByter
btw: make told you what to do: just stop programming
BinaryByter
/runs
Anonymous
i use tab
Anonymous
but it can't working
BinaryByter
idk lol
Leon
hi
Dima
/runs
/runs
Ανδρέας 🇮🇹
/runs
BinaryByter
hello
Ariana
/runs
Ariana
.-.
Darshak
Thanks rose😊
Shivam
No respone from her sad
olli
Shivam
It's a bot
sarcasm :3
Shivam
Kk
Anonymous
Dima
you already got the answer
Anonymous
Need a help for opening an fb account...its need a identity confirmation...plz help