Skip to content

Commit

Permalink
Increase float and double precision ##core
Browse files Browse the repository at this point in the history
  • Loading branch information
rolio37 authored Oct 18, 2024
1 parent 17a4226 commit f85d1bc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions libr/core/cmd_help.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
12 changes: 6 additions & 6 deletions test/db/cmd/cmd_help
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions test/db/cmd/feat_variables
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/db/formats/firmware
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f85d1bc

Please sign in to comment.