Closed uomopalese closed 5 years ago
I sympathise, but it's as simple as:
new Decimal('0xff.f').toString()
// "255.9375"
or, more clearly,
(new Decimal('0xff.f')).toString()
// "255.9375"
or
var x = new Decimal('0xff.f')
x.toString()
// "255.9375"
You can try this by opening a browser console at the documentation page here.
You're right, is that simple... Thank you
From documentation:
I'm a low level user, and is difficult for me to understand your choice to put only part of the example and let users imagine the rest.. I mean, I can understand where to put
var
and semicolons. e.g.:becomes
but it's a bit more difficult to get this:
In this example:
but
where have been called
toString
then? Thank you