Bitcoin Forum
May 09, 2024, 01:01:55 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: sendmany float precision issue in php  (Read 1115 times)
gweedo (OP)
Legendary
*
Offline Offline

Activity: 1498
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
1715259715
Hero Member
*
Offline Offline

Posts: 1715259715

View Profile Personal Message (Offline)

Ignore
1715259715
Reply with quote  #2

1715259715
Report to moderator
1715259715
Hero Member
*
Offline Offline

Posts: 1715259715

View Profile Personal Message (Offline)

Ignore
1715259715
Reply with quote  #2

1715259715
Report to moderator
1715259715
Hero Member
*
Offline Offline

Posts: 1715259715

View Profile Personal Message (Offline)

Ignore
1715259715
Reply with quote  #2

1715259715
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715259715
Hero Member
*
Offline Offline

Posts: 1715259715

View Profile Personal Message (Offline)

Ignore
1715259715
Reply with quote  #2

1715259715
Report to moderator
1715259715
Hero Member
*
Offline Offline

Posts: 1715259715

View Profile Personal Message (Offline)

Ignore
1715259715
Reply with quote  #2

1715259715
Report to moderator
1715259715
Hero Member
*
Offline Offline

Posts: 1715259715

View Profile Personal Message (Offline)

Ignore
1715259715
Reply with quote  #2

1715259715
Report to moderator
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



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
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12977


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

I'm pretty sure Bitcoin accepts scientific notation.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!