Mathematics Homework Solutions
Problem
#129436

JAVA Programming : Float Operator

What value will z have if you execute the following assignment statement?
float z= 5/10.

The answer is 0.  Why?


Solution Summary

Use of "float" in Java programs are investigated. The solution is detailed and well presented. The response received a rating of "5/5" from the student who originally posted the question.

Solution
What is this?
By OTA - Overall OTA Rating
Yupei Xiong, PhD - 4.8/5
Purchase Cost Now
$2.19 CAD (was ~$3.99)
Included in Download
  • Plain text response
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
Browse