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"
⭐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 ??
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.
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😍
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.
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;
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.
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.
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
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
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
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); } }
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; :)
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
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.
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"
I want to learn C Language plz help
Bhai next video mien course content bta dien Sara k kiya kiya sekhien gy :-)
@@mehtabnaseer8590 already bataya hua h yahan: th-cam.com/video/n05_xoALf1w/w-d-xo.html
@@mehtabnaseer8590 and here: th-cam.com/video/iLwvFBLbols/w-d-xo.html
Thanks Bro ♥️
⭐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 ??
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.
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😍
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.
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
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
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;
Float - 32 bit (7 digits)
Double - 64 bit (15-16 digits)
Decimal - 128 bit (28-29 significant digits)
float can put 6 to seven decimal digit after precsion while double allows you till 15 digit after a 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.
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.
float can hold up to 7 decimal digits accurately while double can hold up to 15.
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
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
sir visual studio ma font size badha sakta hai
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
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?
Can I use VsCode with unity instead of Visual Studio? Which one is better?
float for 7 digits, double for 15-16 digits, Decimal for 28-29 Digits
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
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
apka software house kha hai?
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
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);
}
}
hi i am only 13 years old and i am also understanding you're mind blowing
\
Variable
public class Variable : MonoBehaviour
{
private string name = "Ammar";
// Start is called before the first frame update
void Start()
{
print(" My Name is "+name);
}
}
sir agr bura na mane to peecha hlka sa music chla dia kra please
in double we can use 15 digits after point and in float on 7 digits after decimal point
FLOAT, OBJECT, DOUBLE
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?
thanks i got answer on 14:36
example float contain 7 digits and double contains 15
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;
:)
in variable Double means Double-precision,
public string Myname = "Awais"
Debug.Log("My name is " + Myname)
out put is
My name is Awais
thanks you and Exercise Complete
Sir please web development or app development ka course bhi kr wa dain
We can also use 0 or 1 rather then true or false
agar ye wali scheme abhi se bata di non-programmers abhi se bhag jaengay xD
@@FarhanAqeel 😂😂
@@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
Variable hum decide karenge kya
ji
Float Size = 4 bytes
Double Size = 8 bytes
I want to learn C Language kindly snd me any good link
C se best C++ hai .
Or new c++ course launch howa hai regular basis pr videos upload horhi hai "apnacollege" TH-cam channel pr
Sir kia ap ue course complete karwaiii gay...?
I am new and I subscribed your channel.
Yes!!
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
it won't slow the program.
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.
A double has 15 decimal digit
❤
op
Double 1 se zada number
double have 8 byte and floth have 4 bit
float 7.77
double 7.7777777777
1st
1:33 you are wrong..Elon musk son name is 'X Æ A-12'
float can hold up to 7 decimal digits accurately while double can hold up to 15.