answersLogoWhite

0

What is a float value?

Updated: 11/8/2022
User Avatar

Wiki User

7y ago

Best Answer

A value of float or floating point type represents a real number coded in a form of scientific notation. Depending on the computer it may be a binary coded form of scientific notation or a binary coded decimal (BCD) form of scientific notation, there are a nearly infinite number of ways of coding floating point but most computers today have standardized on the IEEE floating point specifications (e.g. IEEE 754, IEEE 854, ISO/IEC/IEEE 60559).

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a float value?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is Float to float casting in java possible?

It is possible in JDK 1.5 and above. In JDK 1.4, you also cast the Float value into float value by using casting. For exampe in JDK 1.5, its possible float f = 12; Float ff = f; but in JDK 1.4, you will use casting i.e float f = 12; Float ff = (float)f;


How do you invoke function result () takes two float argument and returns an integer in c plus plus program?

You can do this by creating a forwarddeclaration of the function. You can call the forward drclared function inside the main to use it.int result(float num1, float num2);intmain(void){int value = result(3.14, 2.74);return (0);}intresult(float num1, float num2){int value = 0;// function codes goes here// you can alter the value of variable 'value'return (value);}The returning value of the 'result()' function is assigned to variable 'value' in 'main()'.


Can an float value be assigned to int variable?

Yes, an integer can be assigned as a float value.But it get stored as a float value, that is an implicit type conversion occurs during compilation.Smaller data types are convertible to larger data types.eg:float b=12;// an integer constant is assigned to a float variableprintf("%f",b);// when printing b it will print as 12.000000


When you assign the value 5.628 into a float variable how can you avoid getting the decimal truncation warning?

When assigning a literal value, such as 5.628, to a float variable, you can avoid the decimal truncation warning by either using the float form of the constant (float var = 5.628f), typecasting the assignment (float var = (float) 5.628), or by making the variable double (double var = 5.628).


How to use float value in unix programs?

contact : - 9488053472


Why should double data type is preferable over float data type?

by default any float value is double


Why the float takes 4 bytes in turbo c plus plus?

What's your problem with that? It's a (quasi-)standard value for a 'float'.


What do you mean by casting a value?

casting a value is when the data type is changed from one type to another.int a = 100;float b:b = (float)a;------The (float)a casts an int to a float. In C this is automatic but in C++ it is not. For the sake of readability and debugging it is a good idea to put the cast in the code, this is relay helpful 6 months later when you review your work.


Can a double value be assigned to float variable?

THIS IS FOR JAVA i don't know about anything about other languages yes it can be assignedthe syntax is:int (number) = (float) numberFOR EXAMPLE:int = a;a = (float ) 5.5;if the (float) is not there then in Java it gives an error saying precision loss of data type


What is a general value for Surface Emissivity for 6mm float glass?

0.79


How do you declare a variable with initial value of 20.1234?

float myVariable = 20.1234;


Assign the value of pie ie 3.142 to a variable with requisite data type?

float pi = 3.142; // Note: pi is an irrational number, there is no "exact" value of pi