Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. KriDan

    WHY would you cast a float to an int?...

    Thank you both. I think Globos hit it correctly...the book I use teaches them casting WAY before they ever learn about objects...so the practical application for it is 3 chapters ahead of where they currently are! Thanks alot!
  2. KriDan

    WHY would you cast a float to an int?...

    I teach beginning Java at a tech school. I understand what casting is - converting a higher data type to a lower data type...my question is practical application...What would be a situation in which you would WANT to lose the decimal places in a float & convert it to an int?, etc. In your...

Part and Inventory Search

Back
Top