Telegramy
Articles
About
« Rev
@programminginc
1267
Fwd »
BinaryByter
but you can't store every value perfectly like that
MᏫᎻᎯᎷᎷᎬᎠ
google ieee754
Once the number gets bigger it loses its precision
Mat
Actual value? How they can be different. It's what we assign. If we do x = 10.5 it's 10.5
Try your example thinking at 234214.38483929291873848493992
Sasuke
Try your example thinking at 234214.38483929291873848493992
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
i'm pretty sure that you'll get some float imprecision artifact
tried it
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
but all those "programming challenges"-pages are usually cringe
true
Anonymous
can we use cpp in android development?
Nameful
can we use cpp in android development?
Yes
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
Nameful
kotlin is almost similar to cpp
In which way?
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.
BinaryByter
style in which we define variables booleans fuctions etc.
wow
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
Nameful
dude...java really sucks, we need to define so much thing
Are you new to programming?
Mihail
Are you new to programming?
Seems like it tbh
BinaryByter
Are you new to programming?
he is
Mihail
thats not what maeks a language
.
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
nope dude😑
🤔
Anonymous
that why
Mihail
but if you can code in cpp, you can easily undstnd kotlin
That means nothing
Anonymous
i am telling it is similar
BinaryByter
A language is/isn't similar to other because if it's syntaxis
syntax is partly it though
Anonymous
That means nothing
ummm...ok
Mihail
Also modern c++ does not look anything like Kotlin
BinaryByter
Also modern c++ does not look anything like Kotlin
wait there is modern C++?
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
Even tho imo you shouldn't have to mention that
yes
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
Sad that most people still think of c++ as c with classes
Thats because of how C++ is thaught
Mihail
Thats because of how C++ is thaught
Exactly
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?
BinaryByter
if i can google everything, then why i am here?
to ask real questions
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
so, can i use andro-stdio for ndk?
No
Mihail
But you have to use gradle
Anonymous
hmmm...ok
Anonymous
thnx
Mihail
Oh wait
Mihail
Yes
« Rev
@programminginc
1267
Fwd »