Commit Graph

16 Commits

Author SHA1 Message Date
JuneHan
973d5fa1cd
fix: minimize the precision loss when dumping double to string (#712)
* fix: minimize the precision loss when dumping double to string
* abandon one-time macro
* replace hard-coded buffer size, replace `sprintf` with `snprintf`
* replace `DECIMAL_DIG` with `DBL_DECIMAL_DIG`
* Update json.h changed to C++11 DECIMAL_DIGIT
* added cfloat include
* identify float and double as different numeral types, and approach their precisions accordingly

---------

Co-authored-by: June Han <jun_h@pretia.co.jp>
Co-authored-by: gittiver <gulliver@traumkristalle.net>
2024-01-29 15:25:26 +01:00
okaestne
5e19641d61 fix friend declarations 2022-11-08 10:32:37 +01:00
Ryan Russell
33becfb353
docs(middlewares): readability improvements (#540)
Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-09-18 23:24:29 +03:00
Alireza Mohammadi
8ee2a0f93d
Fix build warnings 2022-07-20 14:59:56 +04:30
Vladislav Oleshko
f505c152e1 Remove custom keys 2022-07-04 12:27:25 +03:00
Vladislav Oleshko
cbdb127b98 Small naming fixes 2022-07-04 10:50:14 +03:00
Vladislav Oleshko
2e0e5935ff Add docs, fix comment 2022-06-23 13:19:47 +03:00
Vladislav Oleshko
a251928732 Add more comments to example, small fixes 2022-06-23 10:59:44 +03:00
Vladislav Oleshko
4c5807de81 Support char[]/char* for set/get, small fixes 2022-06-22 20:47:13 +03:00
Vladislav Oleshko
ea4c672a41 Emulate variant with json wvalue for C++11/14 2022-06-22 17:02:16 +03:00
Vladislav Oleshko
a9135bddd5 Move out from detail namespace, small changes 2022-06-22 15:18:32 +03:00
Vladislav Oleshko
4df3f2f171 Add expiration tracker 2022-06-21 23:52:21 +03:00
Vladislav Oleshko
9ed2e32905 Remove boost impl, unify integral types 2022-06-21 17:05:31 +03:00
Vladislav Oleshko
29c657df8f Add session id preset, remove boost filesystem, small fixes 2022-06-21 15:38:22 +03:00
Vladislav Oleshko
b939dd4f1d Small fixes 2022-05-28 17:59:33 +03:00
Vladislav Oleshko
f46bdc1a24 First iteration of sessions 2022-05-28 16:42:25 +03:00