• 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: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
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