Explore BrainMass

Mix Integers and Single Expressions

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

You can mix integers and non-integers in a single expression. For example: 123."A" = "123A" "4A"+123 = 127, "5.5" + 5 = 10 Non-integers are converted to integers as required by the operators. The non-integer converts to an integer starting with the left-most character and continuing until encountering a non-numeric character. In the second example above, "4A" converts to 4; in the third example, "5.5" converts to 5.
Question: What is the value of "1.2"+3.4?

A. 46.2
B. 154
C. 4.6
D. 44
E. 4.4
F. None of the above

© BrainMass Inc. brainmass.com December 20, 2018, 3:48 am ad1c9bdddf

Solution Summary

This posting contains the answers to the given questions.