Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to convert exponential value to decimal form

 
Bakul Ghude
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got stuck while converting exponential value to decimal value .
Please suggest code for this
 
fred rosenberger
lowercase baba
Bartender
Posts: 12196
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could you explain in more detail what the problem is? do you not know what exponential form means? Do you have a string? a Double? a double? are you trying to convert it for use within your program, or just for display?

there are too many unknowns to give any meaningful answer.
 
Bakul Ghude
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually It is double
but if the no is like 1,00,00,000 then it will convert it into exponential form so i do not want this exponential form i want normal no
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15485
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the class java.text.DecimalFormat. It allows you to format numbers any way you like.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic