ruimarinho / bitcoin-core

A modern Bitcoin Core REST and RPC client.
482 stars 188 forks source link

getBalance return not as string or number but this : 8e-8 #120

Open inzider opened 4 years ago

inzider commented 4 years ago

Hi, I am aware of js trouble with the float.

But calling the getData('addr1') on a low balance address as 0.00000008 return 8e-8. While lightly higher balance as 0.00000200 will return a number with correct value : 0.00000200.

Is there any setting? I'm only trying to cover the whole 8 digit. Could be return as string but not scientific notation aka 8e-8.
; )

Thx for advice.