Skip to content

Commit

Permalink
Use POWER_33 for values past 'Q'
Browse files Browse the repository at this point in the history
1e33 made values use "1000 Q" on i386.
  • Loading branch information
df7cb committed Jan 5, 2023
1 parent 420eca9 commit 893dbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ unit_cstring (Unit *unit)
return output;
}

if (v_abs >= 1e33) {
if (v_abs >= POWER_33) {
// do nothing
} else if (v_abs >= POWER_30) {
prefix = "Q"; factor = 1e-30;
Expand Down

0 comments on commit 893dbf3

Please sign in to comment.