Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utilities/ticks/fortplot_tick_formatting.f90
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function format_tick_value(value, range) result(formatted)

abs_value = abs(value)

if (abs_value < 1.0e-10_wp) then
if (abs_value <= epsilon(1.0_wp)) then
formatted = '0'
else if (range >= 100.0_wp .or. abs_value >= SCIENTIFIC_THRESHOLD_HIGH) then
! Use integer format for large ranges
Expand Down Expand Up @@ -60,7 +60,7 @@ function format_tick_value_smart(value, max_chars) result(formatted)
abs_value = abs(value)

! Handle zero
if (abs_value < 1.0e-10_wp) then
if (abs_value <= epsilon(1.0_wp)) then
formatted = '0'
return
end if
Expand Down