This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BigDecimal in JavaScript

 
dinesh chanchlani
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am adding two BigDecimal numbers and storing the result in variable declared(var object) inside Java Script.The addition result can be as large as 999999999999999999.99.But such large value is not getting stored properly in JavaScript variable,it gets rounded off.Is there a way to store numbers of precision(18,2) in JavaScript variables?
 
Maneesh Godbole
Saloon Keeper
Posts: 11092
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65114
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no BigDecimal in JavaScript. That's a Java class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic