Computers suck at Math (a painful discovery)

preview_player
Показать описание
Computers can basic Math with fractions. Let me show you how.

► Follow us on Linkedin:

#programming #softwareengineer #coding

DISCLAIMER: All opinions shared on this channel are our own and don't express views or opinions of our employers. We only use our experiences and public knowledge to make our content. NO CONFIDENTIAL INFORMATION of our employers is used or shared on this channel. This is not a Professional Coaching channel, it only highlights the public resources that have worked for our careers.
Рекомендации по теме
Комментарии
Автор

The solution for the question that you have asked is:

Adding 0.1 with 0.1 is like adding 1/3 with 1/3 in decimal we get 2/3.
1/3 + 1/3 = 2/3.
i.e 0.3333+0.3333=0.6666
We get the exact value of 2/3 when we add 1/3 with 1/3

Thank you sir
Love from India ❤❤❤❤❤

momigro
Автор

Hi sir,
I always stuck in dynamic programming please make a video on it. This will help me and others.

pankajpandit
Автор

Well adding 'f' to them all will solve the problem. 0.1f +0.2f is surely equal to 0.3f

adamidris
Автор

Always my mentor I thank you for your advice more so for an upcoming day Software Engineering like me

ByTechSolutions
Автор

Sub test()
Dim n1 As Double, n2 As Double, n3 As Double
n1 = 0.1
n2 = 0.2
n3 = n1 + n2
MsgBox (n3)
End Sub

Works fine in VBA

krishnakumars
Автор

The number 0.1 and 0.2 cannot be added to the exact number 0.3, the binary sequence of numbers is not the same . But 0.1 and 0.1 is precise and so it can be added.

sasankchintham
Автор

Please can you make a video on recursion because the concept is somehow confusing. Thanks

UnyimeUdoh-nylp
Автор

we can store numbers upto 2^32 by simple permutation and combination
there are 2 ways to store number at each bit and there are 32 such places so 2 gets multiplied 32 times

Abhijeet-smem
Автор

easy

def func(a, b):
if a == 0.1 and b == 0.2:
print(0.3)

mingboevnurullo
Автор

00:02 Computers struggle with basic math calculations.
00:40 Computers store numbers in binary representation.
01:18 Computers store information in binary representation using bits.
01:59 Computers have limitations in storing large integer values due to bit constraints.
02:31 Computers struggle with basic fraction calculations due to how they store fractions.
03:13 Computers cannot store decimals directly.
03:52 Computers have limitations in representing decimal fractions in binary
04:32 Computers cannot read and understand precise values

studiesinformation
Автор

0.1=0.0 0011 0011 0011 0011... and 0.2=0011 0011 0011...
Now 0.1+0.1=0.0 0011 + 0.0 0011 = 0.00110 ==0.2 (taking onlly 5 bits after decimal; can be similarly tested for 23 bits or 52 bits)

oxilyrt
Автор

Can you talk about OOP and make a full guide or a complete roadmap for OOP & Data structure and algorithms for a specific language espicially python, java or c++ from begginer to an expert thank you for your great content ❤❤❤

youssefelshahawy
Автор

It never reaches a definite value which can be stored in memory. Btw, it was different this time as it didnt end with " I will see you in the next one." Thank you Sahil "Au revoir"🙂

michaelkewl
Автор

Hlo this is Saleem can u please suggest best way to learn spring and spring boot and some best youtube channels for learning from starch

saleemsayyed
Автор

When use 0.1 twice. It is Precise like same....but when 0.1 and 0.2 used they do not precise same.. Thats why it is not equal...

joydebnath
Автор

In Dev C++ this program display " Computer are good at maths" why

pngzyow
Автор

This concept is in our DLCA subject second year engineering.

sanchetatkari
Автор

This is such a great video... thanks a LOT 🙏

JohnDoe-vuhy
Автор

bcoz 0.1 and 0.2 both are sort of infinite for computer so infinite + infinite = infinite and infinite == infinite ?
I don't know if it's correct

theyogaguy
Автор

I had a question, pls pls help me..
I am a fresher currently in an mnc with 40k salary but the project i have been assigned is a project where i need to design UI for their windows platform. To me it sounds very boring and outdated. Like it's just windows with no modern tech like angular etc. I don't know what to do now.. Can't leave the company due to financial issues.. But this project won't help me while switching after a year or so..what can i do????😢

BeKindall