What are the lower and upper limits for ‘Value’ and ‘Fee Fraction’?
What’s the maximum number of decimals?
For ‘Fee Fraction’ I noticed that 0.03 is interpreted as 0.03% on Blockscan. Logically the lowest value should therefore be 0.0 and the highest 99.9…?
EDIT:
Answer found:
Fee fraction must be 0 - 42.94967295 %.
Value is converted to double precision, which gives 15–17 significant decimal digits precision.
0.05 is 5% (see URL below). @mtbitcoin
Value is -1 or such for the initial, and a positive integer for one of outcomes (eg you can broadcast that 1 will be Yes, 1 No). I don’t think the protocol cares how positive integers are assigned - that’s up to the broadcaster, but -1 is “to be decided”, maybe by convention, you can check the source code).
0.03 => 0.03% must just be the library I use then.
What is the official range? Something like 0.0 to 0.99… would make sense.
Regarding Value I am interested in the exact range allowed, not how to initializing/resolving bets. There are broadcasts with values such as -10000000 and 42.94967295.
value (float, required): Numerical value of the broadcast.
Any float should be okay.
If you create a simple broadcast I think you can 'cast currency rates, temperature, etc. I think that’s why any float is allowed.
Double-precision binary floating-point is a commonly used format on PCs, due to its wider range over single-precision floating point, in spite of its performance and bandwidth cost. As with single-precision floating-point format, it lacks precision on integer numbers when compared with an integer format of the same size. It is commonly known simply as double. The IEEE 754 standard specifies a binary64 as having: