answersLogoWhite

0


Best Answer

Yes.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is A value with a decimal portion automatically rounded to a whole number when assigned to an Integer variable?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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


Is a decimal number an integer?

A decimal number is not an integer. An integer is a number that is not a fraction, and decimal numbers are decimal fractions.


What is the decimal value of the letter u?

None. A letter has no numerical value unless it represents a variable and a value is assigned to it.


Is a none repeating decimal an integer?

No, if it has a decimal place then its not an integer


Would a decimal be an integer?

No by definition a decimal number can never be an integer because an integer is a whole number (it can not have any decimal parts).


Can a negative decimal be an integer?

an integer won't have any decimal point


Is a decimal a positive integer?

A decimal is not an integer. However a number with a decimal component can be either positive or negative


Is 7.38 a mixed decimal?

Yes. A mixed decimal is any decimal with an integer ... i.e. 7.38. .38 is the decimal 7 is the integer


Is 184 a integer?

An integer is a number that has no decimal. Yes, 184 is an integer.


Is a decimal an integer?

No.


Is 3.25 an integer or decimal?

decimal


Is -1.3838 an integer?

No. It is decimal number. An integer is a number that can be written without a fractional or decimal component.