doubleValue() function in javascript rhino

21 views
Skip to first unread message

Prvz Khan

unread,
May 22, 2015, 2:41:02 AM5/22/15
to mozill...@googlegroups.com
var x = 3.0;
x.doubleValue()

The above code is throwing error "cannot find doubleValue on the object"

Is there a way I can call doubleValue() method on a variable in JavaScript. I am using Rhino to run the JavaScript.

Evgeny Shepelyuk

unread,
May 23, 2015, 2:20:47 AM5/23/15
to mozill...@googlegroups.com
You could create java.lang.Double instance.
Reply all
Reply to author
Forward
0 new messages