# Question on float variables

Nina Binde

Ranch Hand

Posts: 85

Barry Gaunt

Ranch Hand

Posts: 7729

posted 11 years ago

- 0

"1e1f" that's a

"1e1" that's the exponential notation and means 1 times (ten to the power of 1). Ten to the power of 1 is ten. So "1e1f" is 10.0. The integer part of 10.0 is 10.

I leave you to work out the other one.

[ October 24, 2004: Message edited by: Barry Gaunt ]

**float**literal because of the "f" at the end."1e1" that's the exponential notation and means 1 times (ten to the power of 1). Ten to the power of 1 is ten. So "1e1f" is 10.0. The integer part of 10.0 is 10.

I leave you to work out the other one.

[ October 24, 2004: Message edited by: Barry Gaunt ]

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch

Getting someone to think and try something out is much more useful than just telling them the answer.

rogel garcia

Ranch Hand

Posts: 41

I agree. Here's the link: http://aspose.com/file-tools |