Explore
Top Rated Discussions
Most Recent Discussions
Most Recent Activity
Hot Discussions
New User Discussions
Discussions w/ No Response
Help
FAQ
Earnings Program
Community Guidelines
Contact
Sign Up!
Log In
Search
Tagged Discussions
Tagged Responses
Tagged Comments
Tagged All Activity
Users
Full Text Discussions
Full Text Responses
Full Text Comments
Full Text All Activity
X
fmmik2x
@fmmik2x (17)
Philippines • Age 40
Joined myLot 16 years ago
All Activity
Discussions (3)
Responses (9)
Comments (5)
Mentions (0)
Likes (2)
Followers (3)
Following (2)
fmmik2x's Likes
fmmik2x
liked this
•
23 Nov 08
What's the result?
fmmik2x
@fmmik2x
(17)
•
Philippines
20 Nov 08
Hello, I got a simple question, which one below gives the 50.0 result? float constNum = 100; float a = 0 + (50 / 100) * constNum; float b = 1 * 50 * constNum / 100;
float
float
float on
java
result
3 responses
mr_mlk
float a= 0 + (50/ 100)* constNum (50/ 100) = 0.5, but as 50 and 100 are ints not floats this is truncated to "0". 0 + 0 * constNum = 0 + (0 * constNum) = 0 + (0 * 100) = 0 + 0 = 0 float b= 1* 50* constNum/ 100 1* 50* constNum/ 100 = (1* 50)*...
23 Nov 08
•
1 person
fmmik2x
liked this
•
23 Nov 08
What's the result?
fmmik2x
@fmmik2x
(17)
•
Philippines
20 Nov 08
Hello, I got a simple question, which one below gives the 50.0 result? float constNum = 100; float a = 0 + (50 / 100) * constNum; float b = 1 * 50 * constNum / 100;
3 responses
Manojknair
I think the seccond one will give the right answer : constNum/100=1 1*50*1=50 At one shot I feel seccond one is correct.
23 Nov 08
•
1 person