Vasil Dimov
89ceb273f5
wire: remove towire_double()
...
Before this patch we used to send `double`s over the wire by just
copying them. This is not portable because the internal represenation
of a `double` is implementation specific.
Instead of this, multiply any floating-point numbers that come from
the outside (e.g. JSONs) by 1 million and round them to integers when
handling them.
* Introduce a new param_millionths() that expects a floating-point
number and returns it multipled by 1000000 as an integer.
* Replace param_double() and param_percent() with param_millionths()
* Previously the riskfactor would be allowed to be negative, which must
have been unintentional. This patch changes that to require a
non-negative number.
Changelog-None
2020-02-27 09:07:04 +10:30
..
2018-06-18 12:45:00 +02:00
2015-07-18 10:46:53 +09:30
2018-03-04 03:22:32 +01:00
2019-02-18 02:42:29 +00:00
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2019-02-22 17:55:36 +01:00
2018-06-08 17:56:48 +02:00
2015-11-20 06:45:19 +10:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-20 14:07:25 +09:30
2015-07-20 14:07:25 +09:30
2015-07-20 14:07:25 +09:30
2015-07-20 14:07:25 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2020-02-18 10:10:17 +10:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2020-02-03 15:38:11 +00:00
2020-01-24 18:25:59 +01:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2019-10-14 18:58:44 -05:00
2019-10-14 18:58:44 -05:00
2019-11-23 22:42:34 +00:00
2019-11-23 22:42:34 +00:00
2019-10-09 21:04:16 -05:00
2019-10-09 21:04:16 -05:00
2020-02-01 16:53:01 +01:00
2020-02-01 16:53:01 +01:00
2019-12-09 14:33:31 +01:00
2019-12-09 14:33:31 +01:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2020-01-28 23:50:52 +01:00
2020-01-28 23:50:52 +01:00
2020-01-21 12:49:33 +08:00
2020-01-21 12:49:33 +08:00
2020-01-21 12:49:33 +08:00
2020-01-21 12:49:33 +08:00
2020-01-21 12:49:33 +08:00
2020-01-21 12:49:33 +08:00
2020-01-21 12:49:33 +08:00
2020-01-21 12:49:33 +08:00
2020-02-01 16:53:01 +01:00
2020-02-01 16:53:01 +01:00
2020-02-27 09:07:04 +10:30
2020-02-27 09:07:04 +10:30
2020-01-04 08:07:22 +08:00
2020-01-04 08:07:22 +08:00
2020-02-10 15:57:55 +10:30
2020-02-10 15:57:55 +10:30
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2019-09-19 01:03:09 +00:00
2019-09-19 01:03:09 +00:00
2019-12-03 01:16:07 +00:00
2019-12-03 01:16:07 +00:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2020-02-12 11:06:17 +10:30
2020-02-18 10:22:26 +10:30
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2019-11-08 03:27:58 +00:00
2019-11-08 03:27:58 +00:00
2019-09-30 00:20:16 +00:00
2019-09-30 00:20:16 +00:00
2019-12-01 15:40:47 +01:00
2019-12-01 15:40:47 +01:00
2020-01-31 14:23:18 +01:00
2020-01-31 14:23:18 +01:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2019-10-14 18:58:44 -05:00
2019-10-14 18:58:44 -05:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2020-02-21 17:52:02 +01:00
2020-02-21 17:52:02 +01:00
2019-09-02 16:31:36 +02:00
2019-09-02 16:31:36 +02:00
2020-01-28 14:07:52 +01:00
2020-01-28 14:07:52 +01:00
2020-01-21 22:23:21 +01:00
2020-01-21 22:23:21 +01:00
2020-01-31 06:02:47 +00:00
2020-01-31 06:02:47 +00:00
2019-12-12 22:16:03 +01:00
2019-12-12 22:16:03 +01:00
2019-09-11 23:56:27 +00:00
2019-09-11 23:56:27 +00:00
2020-02-04 10:44:13 +10:30
2020-02-04 10:44:13 +10:30
2020-02-01 16:53:01 +01:00
2020-02-01 16:53:01 +01:00
2015-07-20 14:07:40 +09:30
2015-07-20 14:07:40 +09:30
2020-02-03 15:38:11 +00:00
2020-02-17 19:07:09 +10:30
2020-02-25 11:12:12 +10:30
2019-03-01 03:48:04 +00:00
2019-10-29 12:18:45 -05:00
2019-11-08 00:23:09 +00:00
2020-01-28 13:46:33 +10:30