BinaryByter
but you can't store every value perfectly like that
MᏫᎻᎯᎷᎷᎬᎠ
google ieee754
Once the number gets bigger it loses its precision
Francisco
not exactly
In his example, yes, it's exactly that hahaha
Anonymous
😆
BinaryByter
In his example, yes, it's exactly that hahaha
try doing cout « setprecision (10) « 10.5;
BinaryByter
i'm pretty sure that you'll get some float imprecision artifact
Francisco
try doing cout « setprecision (10) « 10.5;
I don't have the computer on rn, but 10.5=2^3+2^2+2^-1
BinaryByter
you don't have additions
BinaryByter
nope you don't
Anonymous
Anyone familiar with codewars
Anonymous
codewars like what?
Anonymous
hackathon type?
BinaryByter
its a website
BinaryByter
but all those "programming challenges"-pages are usually cringe
Anonymous
can we use cpp in android development?
Anonymous
Yes
with kotlin?
Mihail
with kotlin?
With the ndk
Anonymous
kotlin is almost similar to cpp
Anonymous
With the ndk
what is that
Mihail
No
Anonymous
No
i realize it, cozz java really sucks😑
Mihail
what is that
https://developer.android.com/ndk
Mihail
i realize it, cozz java really sucks😑
Kotlin is closer to Java than anything
Anonymous
In which way?
style in which we define variables booleans fuctions etc.
Jay
#cppbook
BinaryByter
thats not what maeks a language
Nameful
style in which we define variables booleans fuctions etc.
Oh, syntax? Both are based on C's syntax
Anonymous
Kotlin is closer to Java than anything
dude...java really sucks, we need to define so much thing
Mihail
Anonymous
Are you new to programming?
not in cpp but in android development, yes iam😁
Anonymous
he is
nope dude😑
Mihail
A language is/isn't similar to other because if it's syntaxis
Mihail
But rather because of how it works
Anonymous
A language is/isn't similar to other because if it's syntaxis
but if you can code in cpp, you can easily undstnd kotlin
BinaryByter
Anonymous
that why
Anonymous
i am telling it is similar
Anonymous
Mihail
Also modern c++ does not look anything like Kotlin
BinaryByter
BinaryByter
c++ is this c with classes thing right?
Mihail
c++ is this c with classes thing right?
Well that's what he's likely referring to
Mihail
So that's why I added the modern part
Mihail
Even tho imo you shouldn't have to mention that
BinaryByter
xDD
BinaryByter
C++17 === C++
Mihail
Sad that most people still think of c++ as c with classes
Mihail
C++17 === C++
In a perfect world
BinaryByter
BinaryByter
xD
Anonymous
With the ndk
so what is that
BinaryByter
juse google
Mihail
so what is that
https://developer.android.com/ndk
Anonymous
if i can google everything, then why i am here?
Anonymous
to ask real questions
thats what m doing
BinaryByter
not really
Mihail
if i can google everything, then why i am here?
If I had to explain what the ndk is I'd likely have to write a book
Anonymous
so, can i use andro-stdio for ndk?
BinaryByter
Mihail
But you have to use gradle
Anonymous
hmmm...ok
Anonymous
thnx
Mihail
Oh wait
Mihail
Yes