answersLogoWhite

0


Best Answer

Aman is so smart and so handsome and so intelligent

he is so goodlooking li

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What the condition of check the given number is float or integer in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What does float in ict mean?

A float is basically any number that isn't an integer, so it's basically a number with a decimal place.


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


How do you find by program a given number is integer or float?

If it contains a decimal point or an exponential part, then it should be handled as a float (or double).You can determine an existing variable's type in C using the type() function


When float used and when int used in C programming?

if your calculation involves a decimal point, u must use float, otherwise you can use integer for normal purpose. for example, if u want to divide some number, lets say 9/4 then u must use float to get the answer in accurate decimal point , otherwise if u use int there, the answer will be just 2 instead of 2.25 whenever we used an integer in the program we used int. if there is any decimal part in the number then we used float.


How do you write a program to find number of zeros for the given number in c program?

Assuming the number is represented by a decimal integer, initialise a counter to zero, then repeatedly divide the number by 10 and until the number is zero. After each division, examine the remainder. Each time the remainder is zero, increment the counter. If the number is represented by a decimal float, repeatedly multiply by 10 until the value is an integer, then perform the previous algorithm.

Related questions

What is the difference between integer numbers and float numbers?

Integer numbers : ...-5,-4,-3,-2,-1,0,1,2,3,4,5... Float numbers 1.25, 1.26 etc They are float numbers because its value can be altered after the point, which is based on an integer number.


What does float in ict mean?

A float is basically any number that isn't an integer, so it's basically a number with a decimal place.


is 47.47 an intger?

Nope. If it’s a whole number, it’s an integer. If it’s a fraction without letters, it’s a float


Why do you use typecasting?

to pretend our assumption correct.. i,e.. if we gave integers at the beginning of the program and then if we want to get our result in float , we us the method called typecasting by keeping float in braces in the condition or writing integer as float , means 5 as 5.0.


Why does your TTR 90 leak fuel out of the over flow all the time?

check your float level adjustment and condition of float. also the needle valve seat.


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


Can an integer be 3 and a half?

No, an integer cannot contain a decimal place. Instead consider using a double or a float for decimals.


What is integers in php variable?

An integer is a whole number, sometimes referred to as a "counting number." For instance, the number 5 is an integer. As is 19 and -2289. 0 is an integer.Integers do not have a fractional part. In PHP, those numbers are called floats. So 1.4, -34.873, and PI are all floats.Because PHP is weakly typed, there's not as much concern as in other languages. If you try an do something mathematically to a number you declared as an integer that requires it to be a float, PHP almost always makes the implicit conversion between the two types. The same goes for when you try to print and integer of a float on the screen: PHP will convert them into strings without your having to lift a finger.


Why float is not declared as int in java?

Because float is used for storing floating point numbers (values with decimal points and fractions) whereas int is used to store integer numbers (whole number) Storing a float in a int will result in loss of data which is not desirable and hence it is not done.


How do you find by program a given number is integer or float?

If it contains a decimal point or an exponential part, then it should be handled as a float (or double).You can determine an existing variable's type in C using the type() function


Write a function prototype named test that accepts two parameters an integer and character and returns a float?

float test(int, char);


When float used and when int used in C programming?

if your calculation involves a decimal point, u must use float, otherwise you can use integer for normal purpose. for example, if u want to divide some number, lets say 9/4 then u must use float to get the answer in accurate decimal point , otherwise if u use int there, the answer will be just 2 instead of 2.25 whenever we used an integer in the program we used int. if there is any decimal part in the number then we used float.