Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

How to truncate a floating number?

  Asked By: Darla    Date: Jul 30    Category: Java    Views: 1308
  

I just started programming in Java the other day, and my friend told
me you don't have to use string manipulation to truncate a floating
variable. If their is another does anybody know?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Rocco Anderson     Answered On: Jul 30

You could try java.text.NumberFormat and check out the
api for definition.

 
Didn't find what you were looking for? Find more on How to truncate a floating number? Or get search suggestion and latest updates.




Tagged: