Ask your own question, for FREE!
Computer Science 14 Online
SourMunchkin7806:

What is the value of the variable? double dNum = 45/100;

SourMunchkin7806:

@JustSaiyan

JustSaiyan:

I have no idea. Sorry. I'd hate to lead you on. I've never worked with java.

JustSaiyan:

@Ultrilliam Solve this Pluto with your wizard magic.

SourMunchkin7806:

Lollllllll its ok thanks for trying....you know anyone who has?

JustSaiyan:

Only Ultri.

SourMunchkin7806:

Ok, im guessing hes asleep though lol

JustSaiyan:

There he is.

SourMunchkin7806:

Oh thank god!

Ultrilliam:

It's pretty obvious... ```java double dNum = 45/100; ``` double means it can have decimal places, so in other words, the value of 45/100, 0.45

Ultrilliam:

if it was a regular integer, it would have been 0

SourMunchkin7806:

Ok i got a bunch like this can you help with more?

Ultrilliam:

sure ig

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!