You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rpc: Accept scientific notation for monetary amounts in JSON
Add a function `ParseFixedPoint` that parses numbers according
to the JSON number specification and returns a 64-bit integer.
Coming from btc@fed500e2dd571406b9420f7a26a5db6dee801806
/** Parse number as fixed point according to JSON number syntax.
187
+
* See http://json.org/number.gif
188
+
* @returns true on success, false on error.
189
+
* @note The result must be in the range (-10^18,10^18), otherwise an overflow error will trigger.
190
+
*/
191
+
boolParseFixedPoint(const std::string &val, int decimals, int64_t *amount_out);
0 commit comments