I always loved a simple test: 12345679 * 9 = 111111111. In your case: 12345679 * 9 = 111111112. Checked three times. Solution: using double instead of float 😃
@@segsfault I guess it's cause single-precision can only handle 24 bits properly, whether before or after the dot. ( ran it in C and got a print like this: 16777216 + 1 = dbl= 16777217, flt= 16777216 )
I always loved a simple test: 12345679 * 9 = 111111111. In your case: 12345679 * 9 = 111111112. Checked three times. Solution: using double instead of float 😃
🙏🏽😄 thanks for highlighting that.Appreciate it 👍
I'm not quite sure what floats have to do with integer arithmetic.
@@segsfault I guess it's cause single-precision can only handle 24 bits properly, whether before or after the dot.
( ran it in C and got a print like this:
16777216 + 1 = dbl= 16777217, flt= 16777216
)
coding on kali, respect
the most simple C code:
Display is too small not able to see anything. You must explain it without that how do we understand?
Keep going 🎉🎉🎉
Dude using kali linux, respect haha
Can you please tell me how did you learn gtk. I have learned all the basics of c and now i want to learn gtk to make some simple things.
The best bet is to follow the documentations available on the internet as gtk is fairly easy but i will make future videos relating to gtk
i read gtk documentation in one day and it was enough... it was for different language than C but still
@@bazarbekovic yea not great …
Bro how do you learn so much gtk, I don't know how I can learn properly and make gui application thanks for help
nice Kali, what's your hardware?
is there any reason, you're using Kali for this? or do you just like the UI
Both … I also use kali linux for things other than development
Respect for the kali linux bro 😮.. most people can’t do this
Yo bro does this work with other compulers
Yes just ensure to have gtk installed on your device
bro how can i run this program in VISUAL STUDIO
😅
i dont think you can. afaik windows doesnt have gtk
i looked it up ig it does
@@Scotty-vs4lf with msys you can get gtk, but i still can't add "g_signal_connect", VSCode shows an error
@@craftrumzen2393 im not much of a windows person but i think u need to compile it inside msys to use gtk
@@Scotty-vs4lf good idea, I also could use wsl Ubuntu or Kali to straight compile
am i deaf or does this have no sound
Plz add song in your video😅
Bro Can I get this Code for free prewritten
Sure. Send your email.
@@tomgreen4409 github.com/LasCreations/Gui-Calculator-using-C.git
github.com/LasCreations/Gui-Calculator-using-C.git
ew kali linux
4-2 = 2000 what?!
It clearly shows 2.000 … I left the result to have 3 decimal places after the point … however that can be changed in the program if you want to
its a decimal point...
as in 2.000 is 2 + 0/10 + 0/100 + 0/1000, which is correct