Game Development Course Class# 11: Data Types in C#

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

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

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

    Complete your assignment and upload it in the group before the next class :) Share this video with others.
    Full playlist: th-cam.com/play/PLBh8phtAyHPUY9fqgs1w6aHJALJ3_fMSc.html
    Post your questions in the group: facebook.com/groups/FreelancingHelpOfficial
    Insta: "farhan.aqeel"

    • @Aj-tf1yj
      @Aj-tf1yj 4 ปีที่แล้ว

      I want to learn C Language plz help

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

      Bhai next video mien course content bta dien Sara k kiya kiya sekhien gy :-)

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

      @@mehtabnaseer8590 already bataya hua h yahan: th-cam.com/video/n05_xoALf1w/w-d-xo.html

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

      @@mehtabnaseer8590 and here: th-cam.com/video/iLwvFBLbols/w-d-xo.html

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

      Thanks Bro ♥️

  • @hassaanraheem5644
    @hassaanraheem5644 4 ปีที่แล้ว +12

    ⭐Float is a little brother of double⭐
    Difference Between Float & Double
    Float :
    1) float ke variable Mai hum kitne bi digits point ke sath daalde lkin wo accept hamesha maximum 7digits hi krta hai.
    Example : float weight = 58.27728887f ;
    Output = 58.27728
    2) float values ko initialize krte waqt uske akhir Mai f keyword ko use krte hai yaani f for float.
    Double :
    1) double ke variable Mai hum kitne bi digits point ke sath daalde lkin wo accept hamesha maximum 16digits hi krta hai.
    Example : double width = 28.28298282772617177278d ;
    Output : 28.28298282772617
    2) double values ko initialize krte waqt uske akhir Mai d keyword ko use krte hai yaani d for double.
    Question : which datatype we will use to show the output of floatingvariables with maximum 7 digits and 3digits ?
    Varaible_a = 771.2829 ??
    Variable_b = 61.3 ??

  • @kamran5482
    @kamran5482 4 ปีที่แล้ว +6

    Float just like the small brother of the double main difference is float stores only 7digits( 4 BYTE) while double(8 BYTE) stores 16 digits another difference is when we initialize the value of float write f like 10.5f.

  • @himanshukumarm.eroll-o6420
    @himanshukumarm.eroll-o6420 3 ปีที่แล้ว

    Thanku sir... Aaj samajh aaya float aur char ka main concept. Mai hmesa float ke last me bina f lgay use krta tha smjh hi nahi aata tha, aur char ko hmesa double inverted comma me. Aaj mje me smjha to clear ho gya😍

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

    While float has 32 bit precision for floating number (8 bits for the exponent, and 23* for the value), i.e. float has 7 decimal digits of precision. As double has more precision as compare to that of flot then it is much obvious that it occupies twice memory as occupies by the float data type.

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

    float takes 4 bytes and value range within 1.2E-38 to 3.4E+38
    and double takes 8 bytes and value range within 2.3E-308 to 1.7E+308

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

    bhai you do great effort for this, keep it up. i am big fan of you now.
    and you respond on time that's grapes

  • @abdullahkhan-qf8cn
    @abdullahkhan-qf8cn 4 ปีที่แล้ว

    both are same but Float can store up to 7 digits
    and
    Double can store up to (15-16 digits)
    or in the last, we have to use d for double and f for float
    for example for float : 6666.66f;
    and double : 423595d;

  • @CH-Developers
    @CH-Developers 3 ปีที่แล้ว

    Float - 32 bit (7 digits)
    Double - 64 bit (15-16 digits)
    Decimal - 128 bit (28-29 significant digits)

  • @BeastFanMade
    @BeastFanMade 2 ปีที่แล้ว

    float can put 6 to seven decimal digit after precsion while double allows you till 15 digit after a point .

  • @prajwalinfo
    @prajwalinfo 6 หลายเดือนก่อน

    The precision of float is only six or seven decimal digits, while double variables have a precision of about 15 digits. Therefore it is safer to use double for most calculations.

    • @prajwalinfo
      @prajwalinfo 6 หลายเดือนก่อน

      Use float or double ? The precision of a floating point value indicates how many digits the value can have after the decimal point. The precision of float is only six or seven decimal digits, while double variables have a precision of about 15 digits. Therefore it is safer to use double for most calculations.

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

    float can hold up to 7 decimal digits accurately while double can hold up to 15.

  • @bluemart1
    @bluemart1 2 ปีที่แล้ว

    Double or Float ma ya different ha ka hum float ma sirf 4 values ko store kar sakty ha or double ma hum 8 value ko store kar sakty ha right sir

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

    Sir when I save my project and exit after reopening all scripts gets error and tells this script is not valid or it will say to solve errors but there is no error in script.. Sir please help me to fix this problem

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

    sir visual studio ma font size badha sakta hai

  • @sama.xv7
    @sama.xv7 3 ปีที่แล้ว

    Float = Numbers with Decimal Point upto 7.22 Digits, 4 Bytes of Storage, Precision of 7 Decimal Places, 32-bit Floating Point Precision, It contains 23 Mantissa Bits
    Double = Numbers with Decimal Point upto 15.95 Digits, 8 Bytes of Storage, Precision of 15 Decimal Places, 64-bit Floating Point Precision, It contains 52 Mantissa Bits

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

    i think float aur double me difference numbers ka he float me 7 digits likh sakte hain aur Double me 15 tak.
    kia sahi kaha?

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

    Can I use VsCode with unity instead of Visual Studio? Which one is better?

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

    float for 7 digits, double for 15-16 digits, Decimal for 28-29 Digits

  • @sahilchouhan1858
    @sahilchouhan1858 8 หลายเดือนก่อน

    a floating point has 6 degree of precession but double has a precession of 16 but we have to use d instead of f in writing decimal

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

    As the name implies, a double has 2x the precision of float. In general a double has 15 decimal digits of precision, while float has 7

  • @memebyhamzaa
    @memebyhamzaa 5 หลายเดือนก่อน

    apka software house kha hai?

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

    Private Double price = 10.99;
    Double istmal hota hai numbers ko use karny k liye
    or float istmal hota hai object k liye
    or Double me value k bad f use nhi hota

  • @Mehendi.by.laibaa
    @Mehendi.by.laibaa 2 ปีที่แล้ว +1

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class variableDataTypes : MonoBehaviour
    {
    /*
    Following are different data types of variables
    int = integer > store numbers without decimal point.
    float = > store decimal digits upto 6 or 7.
    double = > double also stores decimal digits but upto
    15 digits
    string = > stores text data.
    char = character > stores single Alphabets
    bool = boolean > stores value either true or false
    */
    public int myAge = 15;
    public float myage = 15.0F;
    public double mySalary = 2000.99999D;
    public string myName = "Osama";
    public char mySymbol = 'X';
    public bool isAdult = true;
    // Start is called before the first frame update
    void Start()
    {
    Debug.Log(myAge);
    Debug.Log(myage);
    Debug.Log(mySalary);
    Debug.Log(myName);
    Debug.Log(mySymbol);
    Debug.Log(isAdult);
    }
    // Update is called once per frame
    void Update()
    {
    Debug.Log(myAge);
    Debug.Log(myage);
    Debug.Log(mySalary);
    Debug.Log(myName);
    Debug.Log(mySymbol);
    Debug.Log(isAdult);
    }
    }

  • @IMRAN13808
    @IMRAN13808 2 หลายเดือนก่อน

    hi i am only 13 years old and i am also understanding you're mind blowing
    \

  • @Ammar-h8n
    @Ammar-h8n ปีที่แล้ว

    Variable
    public class Variable : MonoBehaviour
    {
    private string name = "Ammar";

    // Start is called before the first frame update
    void Start()
    {

    print(" My Name is "+name);
    }
    }

  • @ahsantariq3926
    @ahsantariq3926 3 ปีที่แล้ว +1

    sir agr bura na mane to peecha hlka sa music chla dia kra please

  • @shahzadrathore4838
    @shahzadrathore4838 2 ปีที่แล้ว

    in double we can use 15 digits after point and in float on 7 digits after decimal point

  • @sharavking
    @sharavking 6 วันที่ผ่านมา

    FLOAT, OBJECT, DOUBLE

  • @abdullahkhan-qf8cn
    @abdullahkhan-qf8cn 4 ปีที่แล้ว

    i have a question
    ap har value ka first letter small Kio likh rahe ha for example you wrote
    myAge m is small and A is big?

  • @theuser4002
    @theuser4002 2 ปีที่แล้ว

    example float contain 7 digits and double contains 15

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

    FLOAT:
    float used for single precious
    float contain 32 bit
    float range 7 digits
    example:
    2.13;
    DOUBLE:
    double used for double precious
    double contain 64 bit
    double range 15 digits
    example:
    345.12346654566;
    :)

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

    in variable Double means Double-precision,

  • @umairgodzilla415
    @umairgodzilla415 ปีที่แล้ว

    public string Myname = "Awais"
    Debug.Log("My name is " + Myname)
    out put is
    My name is Awais
    thanks you and Exercise Complete

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

    Sir please web development or app development ka course bhi kr wa dain

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

    We can also use 0 or 1 rather then true or false

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

      agar ye wali scheme abhi se bata di non-programmers abhi se bhag jaengay xD

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

      @@FarhanAqeel 😂😂

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

      @@FarhanAqeel sir do you know JS. If you found time can you please answer my question in the messenger i had asked yesterday 🙂jazak allah

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

    Variable hum decide karenge kya

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

    Float Size = 4 bytes
    Double Size = 8 bytes

  • @Aj-tf1yj
    @Aj-tf1yj 4 ปีที่แล้ว +1

    I want to learn C Language kindly snd me any good link

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

      C se best C++ hai .
      Or new c++ course launch howa hai regular basis pr videos upload horhi hai "apnacollege" TH-cam channel pr

  • @NaveedAhmed-xp3nu
    @NaveedAhmed-xp3nu 4 ปีที่แล้ว +1

    Sir kia ap ue course complete karwaiii gay...?
    I am new and I subscribed your channel.

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

    Is comments use space in script and what if we have 1000 line code and have 100 comments will it slow the program? Because computer read code line by line

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

      it won't slow the program.

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

      bhai one thing comment mean that is for you so compiler does not read. Second thing you are not in 1970 that your program is slow. now you see that one game is near to100gb and your computer Prosser and graphic cards have billions of transistor so concentrate on on your lesson and not think that silly thinks that weast your time.

  • @gboy37752
    @gboy37752 2 ปีที่แล้ว

    A double has 15 decimal digit

  • @good114
    @good114 ปีที่แล้ว

  • @Osman-nl5cn
    @Osman-nl5cn ปีที่แล้ว

    op

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

    Double 1 se zada number

  • @digitalcode5685
    @digitalcode5685 2 ปีที่แล้ว

    double have 8 byte and floth have 4 bit

  • @loveawais4012
    @loveawais4012 2 ปีที่แล้ว

    float 7.77
    double 7.7777777777

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

    1st

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

    1:33 you are wrong..Elon musk son name is 'X Æ A-12'

  • @rtxgaming91
    @rtxgaming91 ปีที่แล้ว

    float can hold up to 7 decimal digits accurately while double can hold up to 15.