Bitcoin Forum
August 21, 2019, 09:37:07 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: sendmany float precision issue in php  (Read 1014 times)
gweedo
Legendary
*
Offline Offline

Activity: 1246
Merit: 1000


View Profile
August 31, 2012, 10:45:27 PM
Last edit: September 01, 2012, 12:14:59 AM by gweedo
 #1

I am trying to setup sendmany command and I can't get .00000100 to a regular float cause it returns the scientific notation, anyone know to force a full float number in php. I can't use number_format since that returns a string and will not work in sendmany.

EDIT : FIXED
1566423427
Hero Member
*
Offline Offline

Posts: 1566423427

View Profile Personal Message (Offline)

Ignore
1566423427
Reply with quote  #2

1566423427
Report to moderator
1566423427
Hero Member
*
Offline Offline

Posts: 1566423427

View Profile Personal Message (Offline)

Ignore
1566423427
Reply with quote  #2

1566423427
Report to moderator
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1207



View Profile
August 31, 2012, 10:58:02 PM
 #2

is there a decimal (or similar arbitrary precision) class in php?

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
gweedo
Legendary
*
Offline Offline

Activity: 1246
Merit: 1000


View Profile
August 31, 2012, 11:03:19 PM
 #3

is there a decimal (or similar arbitrary precision) class in php?

not that my google fu could find
theymos
Administrator
Legendary
*
Offline Offline

Activity: 3486
Merit: 6053


View Profile
August 31, 2012, 11:23:17 PM
 #4

I'm pretty sure Bitcoin accepts scientific notation.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
gweedo
Legendary
*
Offline Offline

Activity: 1246
Merit: 1000


View Profile
August 31, 2012, 11:39:00 PM
 #5

I'm pretty sure Bitcoin accepts scientific notation.

really, cause on a 0.6.3 bitcoind it is throwing -1 error code
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!