What is a Float? (C# vs Python)

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ส.ค. 2024

ความคิดเห็น • 32

  • @maxdukhovskoy1406
    @maxdukhovskoy1406 3 ปีที่แล้ว +5

    Short answer: float = decimal number
    1.45 = float
    1.84628473 = float
    2 = integer (not float)
    2.0 = float

  • @The_Real_RIIKA
    @The_Real_RIIKA 3 ปีที่แล้ว +4

    It kind of sucks that this side of his content doesn't get a lot of attention, i really liked these videos and it helped me a lot to understand basic programming concepts. Same with Michael Reeve's programming tutorials. (Yes, he did those, like two or three videos i think.) Jabrils will forever be my major programming inspiration.

  • @turquoiseisaac7040
    @turquoiseisaac7040 2 ปีที่แล้ว +2

    I just discovered your page today and I just want to thank you! I moved to a new technical sales role but I had no background in development. Your videos have really helped me figure out a few things. Really grateful. Keep you the good work!

  • @tonpetty1882
    @tonpetty1882 4 ปีที่แล้ว +3

    This is the best tutorial on youtube

  • @zolika1993
    @zolika1993 5 ปีที่แล้ว +1

    Thank you for your time Jabrils! Great Video man!

  • @ostro7941
    @ostro7941 5 ปีที่แล้ว +8

    What is the difference between a float value and a double value? In my hi school i learnt double and in my own time and projects i use float, so what is different between the two

    • @beron_the_colossus
      @beron_the_colossus 5 ปีที่แล้ว +6

      Size difference, in most languages *doubles* are twice(double :) ) the size of a *float* , therefore they're more accurate, they can have more digits than floats. I believe a float has 7 digits and a double has 15 digits

    • @jan33343
      @jan33343 5 ปีที่แล้ว +4

      According to google a double has 2x the precision of float(however it also requires more memory)

    • @ostro7941
      @ostro7941 4 ปีที่แล้ว +1

      @@thelandoftwitchclips English is my second language, but thanks for being so kind as to point that out, may I ask where my grammar mistakes are and what I should've wrote instead

    • @strevortni
      @strevortni 3 ปีที่แล้ว

      @@ostro7941 "i learnt" is "i learned" as far as i can see, english is my 2nd language too

  • @rcgaming5087
    @rcgaming5087 5 ปีที่แล้ว +3

    I used a = a + 5 before this! Thank you!

  • @Skjoldmc
    @Skjoldmc 5 ปีที่แล้ว +18

    I don't understand floats. They go over my head.

  • @swaystar1235
    @swaystar1235 5 ปีที่แล้ว +2

    So is there a way to fix the 7.77 - 3.33 in python? what if i wanna make a calculator

    • @joshuathomas5062
      @joshuathomas5062 5 ปีที่แล้ว +1

      there might be some weird workarounds. generally, if you work with floats then the floating-point error is going to be there, but it is usually precise enough to not matter. If I remember correctly then you could define your own "Floating-Point" data-structure when stores the decimal places in an array, but there are almost certainly better ways.

    • @swaystar1235
      @swaystar1235 5 ปีที่แล้ว +2

      @@EndyStar rounding sounds like the worst solution for a calculator

  • @raonibassani670
    @raonibassani670 4 ปีที่แล้ว +1

    i'm having trouble trying to read a float value from the user in C#, can someone help me?

    • @strevortni
      @strevortni 3 ปีที่แล้ว

      wouldn't it be like "float a = input()"?
      i don't do c# but i guess it's something like that

  • @MintyParasol
    @MintyParasol 3 ปีที่แล้ว

    Wait, how to use float in games? Is it like determining maths like in game currency?

  • @sanskuroky
    @sanskuroky 4 ปีที่แล้ว

    how to make float array?

  • @theopbro8691
    @theopbro8691 5 ปีที่แล้ว

    Nice 👍

  • @izzy-frizzy3771
    @izzy-frizzy3771 4 ปีที่แล้ว +1

    i want to learn beacuse i want to have a coding job

  •  4 ปีที่แล้ว

    Its a pity (shame?) you could not talk about precise floating point calculations in python... Often calculating with float to get as most accurate result as possible is crucial.
    Also, you could show how to print certain amount of decimal points after calculation

  • @uncopino
    @uncopino 5 ปีที่แล้ว +4

    0:42 BIG MISTAKE. we know exactly how many decimal figures pi has: an infinite number of ‘em. infinite doesn’t mean we don’t know. infinite means infinte.
    please excuse me, i’m a mathematician xD

    • @noxxedev8095
      @noxxedev8095 5 ปีที่แล้ว

      A mathematician that still says "xD" mmk

    • @uncopino
      @uncopino 5 ปีที่แล้ว

      SuperSuheb which is not true either...
      please jabrils study a little bit of algebra!

    • @photonictech923
      @photonictech923 5 ปีที่แล้ว

      I mean....We all knew what he meant: we don't know all of pi's digits. I don't think it's a big deal really, not like it's going to effect anyone's code, but I understand. Also, why do you like math so much? Just the beauty of math or it's power in solving problems?

  • @aboodisauto8006
    @aboodisauto8006 4 ปีที่แล้ว

    WHO PUT FOR YOU A DISLIKE