• Post Reply Bookmark Topic Watch Topic
  • New Topic

precision numbers  RSS feed

 
Abhishek Singh Sikarwar
Greenhorn
Posts: 7
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to take input with two precision number???
 
Tim Cooke
Marshal
Posts: 4041
239
Clojure IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take input from where? To where? Define precision number?
 
Abhishek Singh Sikarwar
Greenhorn
Posts: 7
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from the console screen....
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And "precision number" means...
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

If you want precision you can use integer arithmetic or BigDecimal. Go through the API documentation for Scanner, looking for appropriate getXXX methods.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!