format_tick_value_consistent Function

public function format_tick_value_consistent(value, decimal_places) result(formatted)

Format tick value with consistent decimal places for uniform appearance. Negative decimal_places select scientific labels (see determine_decimals_from_ticks); integers too large for exact integer output also fall back to scientific notation.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: value
integer, intent(in) :: decimal_places

Return Value character(len=20)