Skip to contents

Applies 10^x, then formats with Norwegian conventions and 1 decimal place.

Applies 10^x, then formats with Norwegian conventions and 2 decimal places.

Usage

format_num_as_nor_invlog10_1(x)

format_num_as_nor_invlog10_2(x)

Arguments

x

Numeric vector of values on the log-10 scale.

Value

Character vector of Norwegian-formatted numbers.

Character vector of Norwegian-formatted numbers.

Examples

# Transform log10 values back to original scale
format_num_as_nor_invlog10_1(c(1, 2, 3))  # 10^1, 10^2, 10^3
#> [1] "10,0"   "100,0"  "1000,0"
format_num_as_nor_invlog10_2(c(1, 2, 3))
#> [1] "10,00"   "100,00"  "1000,00"