diff --git a/libr/core/cmd_help.inc.c b/libr/core/cmd_help.inc.c index c90ca64a3b5b7..2bfa5d2bf8317 100644 --- a/libr/core/cmd_help.inc.c +++ b/libr/core/cmd_help.inc.c @@ -974,8 +974,8 @@ static int cmd_help(void *data, const char *input) { pj_ks (pj, "ternary", r_strf ("0t%s", out)); } else { r_cons_printf ("fvalue %.1lf\n", core->num->fvalue); - r_cons_printf ("float %ff\n", f); - r_cons_printf ("double %lf\n", d); + r_cons_printf ("float %.15ff\n", f); + r_cons_printf ("double %.15lf\n", d); r_cons_printf ("binary 0b%s\n", out); char b36str[16]; b36_fromnum (b36str, n); diff --git a/test/db/cmd/cmd_help b/test/db/cmd/cmd_help index 03a7857b1a831..c7b7eb67ff56a 100644 --- a/test/db/cmd/cmd_help +++ b/test/db/cmd/cmd_help @@ -153,8 +153,8 @@ unit 1 segment 0000:0001 string "\x01" fvalue 1.0 -float 0.000000f -double 0.000000 +float 0.000000000000000f +double 0.000000000000000 binary 0b00000001 base36 0_1 ternary 0t1 @@ -174,8 +174,8 @@ unit 0 segment 0000:0000 string "\0" fvalue 0.0 -float 0.000000f -double 0.000000 +float 0.000000000000000f +double 0.000000000000000 binary 0b00000000 base36 0_0 ternary 0t0 @@ -215,8 +215,8 @@ unit 2 segment 0000:0002 string "\x02" fvalue 3.0 -float 0.000000f -double 0.000000 +float 0.000000000000000f +double 0.000000000000000 binary 0b00000010 base36 0_2 ternary 0t2 diff --git a/test/db/cmd/feat_variables b/test/db/cmd/feat_variables index 3a73c45da476a..82ee5f80a8437 100644 --- a/test/db/cmd/feat_variables +++ b/test/db/cmd/feat_variables @@ -275,8 +275,8 @@ unit 8 segment 0000:0008 string "\b" fvalue 8.0 -float 0.000000f -double 0.000000 +float 0.000000000000000f +double 0.000000000000000 binary 0b00001000 base36 0_8 ternary 0t22 @@ -289,8 +289,8 @@ unit 0 segment 0000:0000 string "\0" fvalue 0.0 -float 0.000000f -double 0.000000 +float 0.000000000000000f +double 0.000000000000000 binary 0b00000000 base36 0_0 ternary 0t0 @@ -350,8 +350,8 @@ unit 123 segment 0000:007b string "{" fvalue 123.0 -float 0.000000f -double 0.000000 +float 0.000000000000000f +double 0.000000000000000 binary 0b01111011 base36 0_3f ternary 0t11120 diff --git a/test/db/formats/firmware b/test/db/formats/firmware index 7e6b1a86736d5..87bf423377f65 100644 --- a/test/db/formats/firmware +++ b/test/db/formats/firmware @@ -40,8 +40,8 @@ unit 1023.9K segment f000:ffaa string "\xaa\xff\x0f" fvalue 1048490.0 -float 0.000000f -double 0.000000 +float 0.000000000000000f +double 0.000000000000000 binary 0b000011111111111110101010 base36 0_mh0q ternary 0t1222021020222